better info comment

This commit is contained in:
ITOH
2021-04-15 10:42:00 +02:00
parent 6e02b14cdc
commit 23779d7a89

View File

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