increase FindPeer timeout to 30s
This commit is contained in:
parent
31dfaf6029
commit
c9f627e221
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue