mirror of
https://github.com/status-im/go-waku.git
synced 2025-02-04 18:03:33 +00:00
fix: use correct ticker for all peers ping (#1214)
This commit is contained in:
parent
99d2477035
commit
3066ff10b1
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user