mirror of https://github.com/vacp2p/nim-libp2p.git
breakout from publish loop
This commit is contained in:
parent
7e31210455
commit
802299e69a
|
@ -429,9 +429,7 @@ method publish*(g: GossipSub,
|
|||
trace "publishing on topic", name = topic
|
||||
g.mcache.put(msg)
|
||||
sent.add(g.peers[p].send(@[RPCMsg(messages: @[msg])]))
|
||||
|
||||
sent = await allFinished(sent)
|
||||
checkFutures(sent)
|
||||
checkFutures(await allFinished(sent))
|
||||
|
||||
method start*(g: GossipSub) {.async.} =
|
||||
## start pubsub
|
||||
|
|
Loading…
Reference in New Issue