limit reconnect interval to 10min.
see https://github.com/nbd-wtf/go-nostr/issues/198
This commit is contained in:
2
pool.go
2
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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user