Add keep alive feature

Using libp2p ping protocol.
This commit is contained in:
Franck Royer 2021-06-21 09:46:41 +10:00
parent e3b4a42822
commit 381fc8b82c
No known key found for this signature in database
GPG Key ID: A82ED75A8DFC50A4
1 changed files with 1 additions and 1 deletions

View File

@ -205,7 +205,7 @@ export class Waku {
} }
private startKeepAlive(peerId: PeerId, periodSecs: number): void { 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); this.stopKeepAlive(peerId);
const peerIdStr = peerId.toB58String(); const peerIdStr = peerId.toB58String();