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…
Reference in New Issue