use floodsub (#1992)

This commit is contained in:
Preston Van Loon 2019-03-14 12:05:49 -04:00 committed by terence tsao
parent b1ffc693e0
commit 2c1f29922e

View File

@ -79,7 +79,7 @@ func NewServer(cfg *ServerConfig) (*Server, error) {
// distributed hash table by their peer ID.
h = rhost.Wrap(h, dht)
gsub, err := pubsub.NewGossipSub(ctx, h)
gsub, err := pubsub.NewFloodSub(ctx, h)
if err != nil {
cancel()
return nil, err