From 00c153cf92eb9aa12f2890635480fd1b63ffa144 Mon Sep 17 00:00:00 2001 From: fiatjaf Date: Wed, 12 Nov 2025 10:15:49 -0300 Subject: [PATCH] limit reconnect interval to 10min. see https://github.com/nbd-wtf/go-nostr/issues/198 --- pool.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pool.go b/pool.go index 17cdb64..9a34320 100644 --- a/pool.go +++ b/pool.go @@ -537,7 +537,7 @@ func (pool *Pool) subMany( // until the context is canceled debugLogf("[pool] retrying %s in %s\n", nm, interval) time.Sleep(interval) - interval = interval * 17 / 10 // the next time we try we will wait longer + interval = min(10*time.Minute, interval*17/10) // the next time we try we will wait longer } }(url) }