Browse Source

reduce autorelay discovery timeout to 30s

pull/570/head
vyzo 6 years ago
parent
commit
c3b5ece119
  1. 2
      p2p/host/relay/autorelay.go

2
p2p/host/relay/autorelay.go

@ -122,7 +122,7 @@ func (h *AutoRelayHost) findRelays(ctx context.Context) {
limit = 2 * need
}
dctx, cancel := context.WithTimeout(ctx, 60*time.Second)
dctx, cancel := context.WithTimeout(ctx, 30*time.Second)
pis, err := discovery.FindPeers(dctx, h.discover, RelayRendezvous, limit)
cancel()
if err != nil {

Loading…
Cancel
Save