Skip to content

Commit

Permalink
Break MDNS loop upon discovery.
Browse files Browse the repository at this point in the history
  • Loading branch information
bahner committed Nov 25, 2023
1 parent 656b87e commit 1580a76
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions p2p/mdns/mdns.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@ discoveryLoop:
h.ConnManager().TagPeer(p.ID, ma.RENDEZVOUS, 10)
h.ConnManager().Protect(p.ID, ma.RENDEZVOUS)

// We only need 1 to get started.
break discoveryLoop

}

case <-ctx.Done():
Expand Down

0 comments on commit 1580a76

Please sign in to comment.