From 2f19cb211d8a567727d68632cb5db42b8ee501ca Mon Sep 17 00:00:00 2001 From: hippoz <10706925-hippoz@users.noreply.gitlab.com> Date: Thu, 14 Apr 2022 17:02:51 +0300 Subject: [PATCH] increase ping and batch intervals --- src/gateway/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gateway/index.ts b/src/gateway/index.ts index 4dbdb64..112eeaa 100644 --- a/src/gateway/index.ts +++ b/src/gateway/index.ts @@ -7,8 +7,8 @@ import { gatewayErrors } from "../errors"; import { GatewayPayload } from "../types/gatewaypayload"; import { GatewayPayloadType } from "./gatewaypayloadtype"; -const GATEWAY_BATCH_INTERVAL = 25000 || process.env.GATEWAY_BATCH_INTERVAL; -const GATEWAY_PING_INTERVAL = 20000 || process.env.GATEWAY_PING_INTERVAL; +const GATEWAY_BATCH_INTERVAL = 50000; +const GATEWAY_PING_INTERVAL = 40000; // mapping between a dispatch id and a websocket client const dispatchChannels = new Map>();