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
|
trace "publishing on topic", name = topic
|
||||||
g.mcache.put(msg)
|
g.mcache.put(msg)
|
||||||
sent.add(g.peers[p].send(@[RPCMsg(messages: @[msg])]))
|
sent.add(g.peers[p].send(@[RPCMsg(messages: @[msg])]))
|
||||||
|
checkFutures(await allFinished(sent))
|
||||||
sent = await allFinished(sent)
|
|
||||||
checkFutures(sent)
|
|
||||||
|
|
||||||
method start*(g: GossipSub) {.async.} =
|
method start*(g: GossipSub) {.async.} =
|
||||||
## start pubsub
|
## start pubsub
|
||||||
|
|
Loading…
Reference in New Issue