Skip to content

Commit

Permalink
Don't discoverpeers by default, just bootstrap
Browse files Browse the repository at this point in the history
  • Loading branch information
bahner committed Nov 27, 2023
1 parent 06e733c commit 177969e
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions p2p/p2p.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,5 @@ func Init(d *dht.DHT, p2pOpts ...libp2p.Option) (*P2P, error) {
DHT: d,
}

err = myP2P.DiscoverPeers()
if err != nil {
return nil, fmt.Errorf("p2p.Init: failed to start peer discovery: %w", err)
}

return myP2P, nil
}

0 comments on commit 177969e

Please sign in to comment.