Skip to content

Commit

Permalink
Merge pull request #6512 from ipfs/fix/default-gossipsub
Browse files Browse the repository at this point in the history
make gossipsub the default routing protocol for pubsub
  • Loading branch information
Stebalien authored Jul 18, 2019
2 parents 7440737 + 1a55676 commit 55afc47
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/node/groups.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}
Expand Down

0 comments on commit 55afc47

Please sign in to comment.