From 104f0680e916cc5f169007928759147bd4f99843 Mon Sep 17 00:00:00 2001 From: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com> Date: Mon, 7 Feb 2022 12:35:38 -0500 Subject: [PATCH] fix(gateway): reserve 4 gw requests for heartbeating (#2006) --- src/ws/processGatewayQueue.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ws/processGatewayQueue.ts b/src/ws/processGatewayQueue.ts index 2b34b8105..ff3bfbb83 100644 --- a/src/ws/processGatewayQueue.ts +++ b/src/ws/processGatewayQueue.ts @@ -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,