Skip to content

Commit

Permalink
fix: use correct ticker for all peers ping
Browse files Browse the repository at this point in the history
  • Loading branch information
iurimatias committed Sep 4, 2024
1 parent b96582a commit e6de1de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion waku/v2/node/keepalive.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit e6de1de

Please sign in to comment.