fix: use correct ticker for all peers ping (#1216)

This commit is contained in:
Iuri Matias 2024-09-04 09:42:26 -04:00 committed by GitHub
parent b96582a30b
commit 49eb64a27d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,7 @@ func (w *WakuNode) startKeepAlive(ctx context.Context, randomPeersPingDuration t
if allPeersPingDuration != 0 {
allPeersTicker := time.NewTicker(allPeersPingDuration)
defer allPeersTicker.Stop()
randomPeersTickerC = allPeersTicker.C
allPeersTickerC = allPeersTicker.C
}
lastTimeExecuted := w.timesource.Now()