fix: change defaults for DNS cache dialer (#11145)

This commit is contained in:
Harshavardhana
2020-12-21 09:33:29 -08:00
committed by GitHub
parent 6df6ac0f34
commit 3e792ae2a2
2 changed files with 15 additions and 19 deletions

View File

@@ -51,7 +51,7 @@ func init() {
logger.RegisterError(config.FmtError)
rand.Seed(time.Now().UTC().UnixNano())
globalDNSCache = xhttp.NewDNSCache(3*time.Second, 10*time.Second)
globalDNSCache = xhttp.NewDNSCache(10*time.Second, 3*time.Second)
initGlobalContext()