diff --git a/discovery/consul/consul.go b/discovery/consul/consul.go index 38f3f8836b..d782a27224 100644 --- a/discovery/consul/consul.go +++ b/discovery/consul/consul.go @@ -114,7 +114,10 @@ func NewDiscovery(conf *config.ConsulSDConfig, logger log.Logger) (*Discovery, e conntrack.DialWithName("consul_sd"), ), } - wrapper := &http.Client{Transport: transport} + wrapper := &http.Client{ + Transport: transport, + Timeout: 30 * time.Second, + } clientConf := &consul.Config{ Address: conf.Server,