Skip to content

Commit

Permalink
Fix minor discovery settings
Browse files Browse the repository at this point in the history
  • Loading branch information
bahner committed Nov 25, 2023
1 parent 1580a76 commit ea204cb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions p2p/dht/dht.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ discoveryLoop:
h.ConnManager().Protect(p.ID, ma.RENDEZVOUS)

break discoveryLoop

}
case <-ctx.Done():
log.Info("Context cancelled, stopping DHT peer discovery.")
Expand Down
2 changes: 1 addition & 1 deletion p2p/discovery.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ func StartPeerDiscovery(ctx context.Context, h host.Host) error {
go func() {
dhtINstance, err := dht.Init(ctx, h)
if err != nil {
log.Error("Failed to initialise DHT. Peer discovery unsuccessful.")
log.Errorf("Failed to initialise DHT. Peer discovery unsuccessful. %v ", err)
done <- struct{}{} // Signal completion
return
}
Expand Down

0 comments on commit ea204cb

Please sign in to comment.