From c3b5ece119cddf71765782da47d7478cd4afecac Mon Sep 17 00:00:00 2001 From: vyzo Date: Wed, 3 Apr 2019 11:51:26 +0300 Subject: [PATCH] reduce autorelay discovery timeout to 30s --- p2p/host/relay/autorelay.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/p2p/host/relay/autorelay.go b/p2p/host/relay/autorelay.go index a6adf48d8..3bc911d7d 100644 --- a/p2p/host/relay/autorelay.go +++ b/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 {