diff --git a/config.go b/config.go index 1c9094f..f35a7ff 100644 --- a/config.go +++ b/config.go @@ -182,7 +182,7 @@ func (uc *UpstreamConfig) SetupTransport() { // SetupBootstrapIP manually find all available IPs of the upstream. func (uc *UpstreamConfig) SetupBootstrapIP() error { - ctx, cancel := context.WithTimeout(context.Background(), time.Duration(uc.Timeout)*time.Second) + ctx, cancel := context.WithTimeout(context.Background(), time.Duration(uc.Timeout)*time.Millisecond) defer cancel() uc.mu.Lock()