Commit b62c83bd authored by vyzo's avatar vyzo
Browse files

better limit adjustment for relay discovery

parent 8faf5403
......@@ -116,7 +116,8 @@ func (h *AutoRelayHost) findRelays(ctx context.Context) {
h.mx.Unlock()
limit := 20
for ; need > limit; limit *= 2 {
if need > limit/2 {
limit = 2 * need
}
dctx, cancel := context.WithTimeout(ctx, 60*time.Second)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment