mirror of
https://github.com/logos-messaging/logos-messaging-go.git
synced 2026-02-08 07:53:09 +00:00
fix: ping interval fixes (#1188)
This commit is contained in:
parent
6e1ff98188
commit
b96582a30b
@ -56,8 +56,8 @@ func (w *WakuNode) startKeepAlive(ctx context.Context, randomPeersPingDuration t
|
||||
}
|
||||
|
||||
allPeersTickerC := make(<-chan time.Time)
|
||||
if randomPeersPingDuration != 0 {
|
||||
allPeersTicker := time.NewTicker(randomPeersPingDuration)
|
||||
if allPeersPingDuration != 0 {
|
||||
allPeersTicker := time.NewTicker(allPeersPingDuration)
|
||||
defer allPeersTicker.Stop()
|
||||
randomPeersTickerC = allPeersTicker.C
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user