mirror of
https://github.com/vacp2p/nim-libp2p.git
synced 2025-01-11 17:24:09 +00:00
Make GossipSub initPubSub method public (#193)
This means we can use it from other protocols that inherit GossipSub. Otherwise, a lot of internal state (heartbeat lock etc) doesn't get initialized properly.
This commit is contained in:
parent
7b6e1c0688
commit
b88bfc05f8
@ -452,7 +452,7 @@ method stop*(g: GossipSub) {.async.} =
|
||||
|
||||
g.heartbeatLock.release()
|
||||
|
||||
method initPubSub(g: GossipSub) =
|
||||
method initPubSub*(g: GossipSub) =
|
||||
procCall FloodSub(g).initPubSub()
|
||||
|
||||
randomize()
|
||||
|
Loading…
x
Reference in New Issue
Block a user