From 381fc8b82cfa5054fc368720bafbf8e388fe6469 Mon Sep 17 00:00:00 2001 From: Franck Royer Date: Mon, 21 Jun 2021 09:46:41 +1000 Subject: [PATCH] Add keep alive feature Using libp2p ping protocol. --- src/lib/waku.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/waku.ts b/src/lib/waku.ts index 39d4824412..19e8309d9b 100644 --- a/src/lib/waku.ts +++ b/src/lib/waku.ts @@ -205,7 +205,7 @@ export class Waku { } private startKeepAlive(peerId: PeerId, periodSecs: number): void { - // Just in case a timer already exist + // Just in case a timer already exist for this peer this.stopKeepAlive(peerId); const peerIdStr = peerId.toB58String();