From e1648d44045b54a7b378cb31b1b6d2a06e679ec7 Mon Sep 17 00:00:00 2001 From: Giovanni Petrantoni Date: Tue, 1 Dec 2020 23:55:51 +0900 Subject: [PATCH] fix mcache logic check in gossipsub --- libp2p/protocols/pubsub/gossipsub.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libp2p/protocols/pubsub/gossipsub.nim b/libp2p/protocols/pubsub/gossipsub.nim index d8109602d..ce9fd5c81 100644 --- a/libp2p/protocols/pubsub/gossipsub.nim +++ b/libp2p/protocols/pubsub/gossipsub.nim @@ -615,7 +615,7 @@ proc getGossipPeers(g: GossipSub): Table[PubSubPeer, ControlMessage] {.gcsafe.} continue let mids = g.mcache.window(topic) - if not mids.len > 0: + if not(mids.len > 0): continue var midsSeq = toSeq(mids)