From 1a55676bf94ede30017ec1315191d87e2558f5a7 Mon Sep 17 00:00:00 2001 From: Steven Allen Date: Mon, 15 Jul 2019 10:02:42 -0700 Subject: [PATCH] make gossipsub the default routing protocol for pubsub Pubsub is experimental anyways. --- core/node/groups.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/node/groups.go b/core/node/groups.go index 1e5207b898c..ab50b3c0a39 100644 --- a/core/node/groups.go +++ b/core/node/groups.go @@ -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)) }