mirror of
https://github.com/DNSCrypt/dnscrypt-proxy.git
synced 2025-01-07 01:41:22 +01:00
Reduce delay
This commit is contained in:
parent
9e96bbc20b
commit
f5a69c3bdc
@ -706,7 +706,7 @@ func _fetchODoHTargetInfo(proxy *Proxy, name string, stamp stamps.ServerStamp, i
|
|||||||
dlog.Warnf("No ODoH relay defined for [%v]", name)
|
dlog.Warnf("No ODoH relay defined for [%v]", name)
|
||||||
} else {
|
} else {
|
||||||
dlog.Debugf("Pausing after ODoH configuration retrieval")
|
dlog.Debugf("Pausing after ODoH configuration retrieval")
|
||||||
delay := time.Duration(rand.Intn(10*1000)) * time.Millisecond
|
delay := time.Duration(rand.Intn(5*1000)) * time.Millisecond
|
||||||
clocksmith.Sleep(time.Duration(delay))
|
clocksmith.Sleep(time.Duration(delay))
|
||||||
dlog.Debugf("Pausing done")
|
dlog.Debugf("Pausing done")
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user