mirror of
https://github.com/logos-messaging/logos-messaging-go.git
synced 2026-01-04 06:53:06 +00:00
fix: use correct ticker for all peers ping (#1216)
This commit is contained in:
parent
b96582a30b
commit
49eb64a27d
@ -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…
x
Reference in New Issue
Block a user