mirror of https://github.com/waku-org/nwaku.git
Use gossipsub
This commit is contained in:
parent
a8a1e39052
commit
26321ca0c9
|
@ -54,8 +54,8 @@ method initPubSub*(w: WakuSub) =
|
|||
w.text = "Foobar"
|
||||
debug "w.text", text = w.text
|
||||
|
||||
# Using FloodSub
|
||||
w.gossip_enabled = false
|
||||
# Using GossipSub
|
||||
w.gossip_enabled = true
|
||||
|
||||
if w.gossip_enabled:
|
||||
procCall GossipSub(w).initPubSub()
|
||||
|
|
Loading…
Reference in New Issue