reduce pool.EnsureRelay() timeout to 7s.
This commit is contained in:
2
pool.go
2
pool.go
@@ -149,7 +149,7 @@ func (pool *Pool) EnsureRelay(url string) (*Relay, error) {
|
|||||||
// we use this ctx here so when the pool dies everything dies
|
// we use this ctx here so when the pool dies everything dies
|
||||||
ctx, cancel := context.WithTimeoutCause(
|
ctx, cancel := context.WithTimeoutCause(
|
||||||
pool.Context,
|
pool.Context,
|
||||||
time.Second*15,
|
time.Second*7,
|
||||||
errors.New("connecting to the relay took too long"),
|
errors.New("connecting to the relay took too long"),
|
||||||
)
|
)
|
||||||
defer cancel()
|
defer cancel()
|
||||||
|
|||||||
Reference in New Issue
Block a user