forked from discordjs/discord.js-modules
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(Rest): improve global rate limit and invalid request tracking
Ported from discordjs/discord.js#4711 refactor(SequentialHandler): use timers/promises refactor(SequentialHandler): move global checks to each request Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com> fix: separate queue for sub limits refactor(SequentialHandler): address PR comments Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com> refactor(SequentialHandler): better sublimit handling refactor: address pr comments Co-Authored-By: Vlad Frangu <kingdgrizzle@gmail.com> Co-Authored-By: Antonio Román <kyradiscord@gmail.com> Co-Authored-By: Noel <icrawltogo@gmail.com> test: add sublimit tests refactor(Util): only check route once refactor: rename globalLimit Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com> fix: address pr comments Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com> refactor(Utils): use enum Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com> Update packages/rest/src/lib/handlers/SequentialHandler.ts
- Loading branch information
Showing
6 changed files
with
445 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.