mirror of
https://github.com/logos-messaging/logos-messaging-go.git
synced 2026-01-10 01:43:08 +00:00
fix: do not self-ping
This commit is contained in:
parent
27c339614f
commit
2f55784db7
@ -416,7 +416,9 @@ func (w *WakuNode) startKeepAlive(t time.Duration) {
|
||||
// which is not possible when iterating
|
||||
// through Network's peer collection, as it will be empty
|
||||
for _, p := range w.host.Peerstore().Peers() {
|
||||
go pingPeer(w.ctx, w.ping, p)
|
||||
if p != w.host.ID() {
|
||||
go pingPeer(w.ctx, w.ping, p)
|
||||
}
|
||||
}
|
||||
case <-w.quit:
|
||||
ticker.Stop()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user