From 23779d7a898f829236cde0d1faa9eba319bcdec0 Mon Sep 17 00:00:00 2001 From: ITOH <72305210+itohatweb@users.noreply.github.com> Date: Thu, 15 Apr 2021 10:42:00 +0200 Subject: [PATCH] better info comment --- src/ws/heartbeat.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ws/heartbeat.ts b/src/ws/heartbeat.ts index e8d633011..1542eee78 100644 --- a/src/ws/heartbeat.ts +++ b/src/ws/heartbeat.ts @@ -14,7 +14,7 @@ export function heartbeat(shardId: number, interval: number) { shard.heartbeat.lastSentAt = Date.now(); shard.heartbeat.interval = interval; - // First heartbeat should be sent bevore + // The first heartbeat should not wait for the entire interval to pass shard.heartbeat.timeoutId = setTimeout( () => sendHeartbeat(shardId), Math.floor(shard.heartbeat.interval * Math.random()),