mirror of https://github.com/status-im/go-waku.git
Use peerstore instead of network
This commit is contained in:
parent
a3c7102a34
commit
67ac969a65
|
@ -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…
Reference in New Issue