fix(gateway): reserve 4 gw requests for heartbeating (#2006)

This commit is contained in:
Skillz4Killz
2022-02-07 12:35:38 -05:00
committed by GitHub
parent 0ae9cf7de1
commit 104f0680e9

View File

@@ -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,