From ab8a97118dc80713e4351fcac4e79a4dd77b0633 Mon Sep 17 00:00:00 2001 From: Dmitriy Ryajov Date: Thu, 23 Nov 2023 12:34:16 -0600 Subject: [PATCH] move self check to discovery.find --- codex/blockexchange/engine/discovery.nim | 1 - 1 file changed, 1 deletion(-) diff --git a/codex/blockexchange/engine/discovery.nim b/codex/blockexchange/engine/discovery.nim index 632fbf17..21013bea 100644 --- a/codex/blockexchange/engine/discovery.nim +++ b/codex/blockexchange/engine/discovery.nim @@ -158,7 +158,6 @@ proc discoveryTaskLoop(b: DiscoveryEngine) {.async.} = let dialed = await allFinished( peers - .filterIt( not b.network.isSelf(it.data.peerId) ) .mapIt( b.network.dialPeer(it.data) )) for i, f in dialed: