Optimize timeoutMs

This commit is contained in:
patterniha 2025-03-24 17:24:20 +03:30
parent 4afe2d0cff
commit 7c540d3e44

View file

@ -165,13 +165,11 @@ func NewClient(
}
}
var timeoutMs time.Duration
var timeoutMs = 4000 * time.Millisecond
if ns.TimeoutMs > 0 {
timeoutMs = time.Duration(ns.TimeoutMs) * time.Millisecond
} else {
timeoutMs = 4000 * time.Millisecond
}
client.server = server
client.clientIP = clientIP
client.skipFallback = ns.SkipFallback