fix(gateway): rate-limit handling (#2079)

* fix: Closes Gateway Ratelimiting  #1886

* fix: fmt

* fix: invalid import
This commit is contained in:
Skillz4Killz
2022-02-28 13:39:45 -05:00
committed by GitHub
parent ac5f68fcf9
commit 4aac2246ad
9 changed files with 42 additions and 15 deletions
+1
View File
@@ -43,6 +43,7 @@ export function resume(gateway: GatewayManager, shardId: number) {
processingQueue: false,
queueStartedAt: Date.now(),
queueCounter: 0,
safeRequestsPerShard: oldShard.safeRequestsPerShard || 120,
});
// Resume on open