From 3f87ec329d03d5ca8a62b0946c6b9fe9da44b59a Mon Sep 17 00:00:00 2001 From: fiatjaf Date: Sun, 4 May 2025 20:21:33 -0300 Subject: [PATCH] reduce pool.EnsureRelay() timeout to 7s. --- pool.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pool.go b/pool.go index 075de59..7fd0a25 100644 --- a/pool.go +++ b/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 ctx, cancel := context.WithTimeoutCause( pool.Context, - time.Second*15, + time.Second*7, errors.New("connecting to the relay took too long"), ) defer cancel()