Commit 1a55676b authored by Steven Allen's avatar Steven Allen

make gossipsub the default routing protocol for pubsub

Pubsub is experimental anyways.
parent 971ced46
......@@ -79,10 +79,10 @@ func LibP2P(bcfg *BuildCfg, cfg *config.Config) fx.Option {
switch cfg.Pubsub.Router {
case "":
fallthrough
case "floodsub":
ps = fx.Provide(libp2p.FloodSub(pubsubOptions...))
case "gossipsub":
ps = fx.Provide(libp2p.GossipSub(pubsubOptions...))
case "floodsub":
ps = fx.Provide(libp2p.FloodSub(pubsubOptions...))
default:
return fx.Error(fmt.Errorf("unknown pubsub router %s", cfg.Pubsub.Router))
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment