@cryptotaxi247 / kubo / commits / 1a55676bf

make gossipsub the default routing protocol for pubsub

Pubsub is experimental anyways.

Steven Allen committed Jul 15, 2019 at 10:02 UTC 1a55676bf94ede30017ec1315191d87e2558f5a7
1 file changed +2 -2
core/node/groups.go
+2 -2
@@ -79,10 +79,10 @@ func LibP2P(bcfg *BuildCfg, cfg *config.Config) fx.Option {
79 switch cfg.Pubsub.Router {
80 case "":
81 fallthrough
82 - case "floodsub":
83 - ps = fx.Provide(libp2p.FloodSub(pubsubOptions...))
82 case "gossipsub":
83 ps = fx.Provide(libp2p.GossipSub(pubsubOptions...))
84 + case "floodsub":
85 + ps = fx.Provide(libp2p.FloodSub(pubsubOptions...))
86 default:
87 return fx.Error(fmt.Errorf("unknown pubsub router %s", cfg.Pubsub.Router))
88 }