increase FindPeer timeout to 30s

This commit is contained in:
vyzo 2019-04-14 15:06:15 +03:00
parent 31dfaf6029
commit c9f627e221
1 changed files with 1 additions and 1 deletions

View File

@ -202,7 +202,7 @@ func (ar *AutoRelay) selectRelays(ctx context.Context, pis []pstore.PeerInfo, co
result := make([]pstore.PeerInfo, 0, count)
resultCh := make(chan queryResult, len(pis))
qctx, cancel := context.WithTimeout(ctx, 15*time.Second)
qctx, cancel := context.WithTimeout(ctx, 30*time.Second)
defer cancel()
// shuffle to randomize the order of queries