Skip to content

Commit

Permalink
make gossipsub the default routing protocol for pubsub
Browse files Browse the repository at this point in the history
Pubsub is experimental anyways.
  • Loading branch information
Stebalien committed Jul 15, 2019
1 parent 971ced4 commit 1a55676
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 1a55676

Please sign in to comment.