mirror of
https://github.com/status-im/go-waku.git
synced 2025-01-14 15:54:20 +00:00
fix: remove manual connection to peers
This commit is contained in:
parent
c87da46ce6
commit
34c5e97d5e
@ -142,16 +142,6 @@ func (wakuPX *WakuPeerExchange) handleResponse(ctx context.Context, response *pb
|
||||
}
|
||||
|
||||
wakuPX.connector.Connect(ctx, ch)
|
||||
for _, p := range peers {
|
||||
func(p peer.AddrInfo) {
|
||||
ctx, cancel := context.WithTimeout(ctx, dialTimeout)
|
||||
defer cancel()
|
||||
err := wakuPX.h.Connect(ctx, p)
|
||||
if err != nil {
|
||||
log.Info("connecting to peer", zap.String("peer", p.ID.Pretty()), zap.Error(err))
|
||||
}
|
||||
}(p)
|
||||
}
|
||||
}
|
||||
|
||||
return nil
|
||||
|
Loading…
x
Reference in New Issue
Block a user