mirror of
https://github.com/vacp2p/nim-libp2p.git
synced 2025-03-03 09:31:08 +00:00
breakout from publish loop
This commit is contained in:
parent
7e31210455
commit
42ae8589fb
@ -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…
x
Reference in New Issue
Block a user