deploy: f76d840baa629199a5d25bd90e80c106cc8ef7df

This commit is contained in:
jm-clius 2022-09-20 09:26:59 +00:00
parent b3feab454c
commit 49f5ef951a

View File

@ -707,7 +707,7 @@ proc runDiscv5Loop(node: WakuNode) {.async.} =
trace "Discovered peers", count=discoveredPeers.get().len()
let newPeers = discoveredPeers.get().filterIt(
not node.switch.peerStore[AddressBook].contains(it.peerId))
not node.switch.isConnected(it.peerId))
if newPeers.len > 0:
debug "Connecting to newly discovered peers", count=newPeers.len()