fix mcache logic check in gossipsub

This commit is contained in:
Giovanni Petrantoni 2020-12-01 23:55:51 +09:00
parent b4738d723c
commit e1648d4404
1 changed files with 1 additions and 1 deletions

View File

@ -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)