From 77765273905b5a03f23be61ca999ef2e8b7d7674 Mon Sep 17 00:00:00 2001 From: Callum Styan Date: Sat, 28 Oct 2017 16:42:42 -0700 Subject: [PATCH] bump consul HTTP client timeout by 5s so it doesn't match up exactly with the consul SD watch timeout --- discovery/consul/consul.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discovery/consul/consul.go b/discovery/consul/consul.go index 8279fed79..ebea7b8a2 100644 --- a/discovery/consul/consul.go +++ b/discovery/consul/consul.go @@ -116,7 +116,7 @@ func NewDiscovery(conf *config.ConsulSDConfig, logger log.Logger) (*Discovery, e } wrapper := &http.Client{ Transport: transport, - Timeout: 30 * time.Second, + Timeout: 35 * time.Second, } clientConf := &consul.Config{