Set timeout for marathon_sd

This commit is contained in:
bekbulatov
2016-10-24 11:27:08 +01:00
parent c689b35858
commit 2bc12fa2fb
3 changed files with 4 additions and 0 deletions

View File

@@ -87,6 +87,7 @@ func NewDiscovery(conf *config.MarathonSDConfig) (*Discovery, error) {
}
client := &http.Client{
Timeout: time.Duration(conf.Timeout),
Transport: &http.Transport{
TLSClientConfig: tls,
},