mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-03 01:10:07 +00:00
fix(gateway): reserve 4 gw requests for heartbeating (#2006)
This commit is contained in:
@@ -32,7 +32,7 @@ export async function processGatewayQueue(gateway: GatewayManager, id: number) {
|
||||
shard.queueCounter++;
|
||||
|
||||
// Handle if the requests have been maxed
|
||||
if (shard.queueCounter >= 118) {
|
||||
if (shard.queueCounter >= 116) {
|
||||
gateway.debug("GW MAX_REQUESTS", {
|
||||
message: "Max gateway requests per minute reached setting timeout for one minute",
|
||||
shardId: shard.id,
|
||||
|
||||
Reference in New Issue
Block a user