mirror of https://github.com/status-im/go-waku.git
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 {
|
if allPeersPingDuration != 0 {
|
||||||
allPeersTicker := time.NewTicker(allPeersPingDuration)
|
allPeersTicker := time.NewTicker(allPeersPingDuration)
|
||||||
defer allPeersTicker.Stop()
|
defer allPeersTicker.Stop()
|
||||||
randomPeersTickerC = allPeersTicker.C
|
allPeersTickerC = allPeersTicker.C
|
||||||
}
|
}
|
||||||
|
|
||||||
lastTimeExecuted := w.timesource.Now()
|
lastTimeExecuted := w.timesource.Now()
|
||||||
|
|
Loading…
Reference in New Issue