mirror of
https://github.com/logos-messaging/logos-messaging-go.git
synced 2026-01-09 17:33:08 +00:00
Use peerstore instead of network
This commit is contained in:
parent
b0fb91ac34
commit
49f216d40c
@ -780,7 +780,11 @@ func (w *WakuNode) startKeepAlive(t time.Duration) {
|
||||
for {
|
||||
select {
|
||||
case <-ticker.C:
|
||||
for _, p := range w.host.Network().Peers() {
|
||||
for _, p := range w.host.Peerstore().Peers() {
|
||||
if p == w.host.ID() {
|
||||
log.Info("###PING skip ", p)
|
||||
continue
|
||||
}
|
||||
mu.Lock()
|
||||
_, ok := peerMap[p]
|
||||
mu.Unlock()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user