From 360e8e19ce1f54b4de94df33415e392de683d87c Mon Sep 17 00:00:00 2001 From: Timo Reimann Date: Fri, 7 Apr 2017 10:21:47 +0200 Subject: [PATCH] Fix default timeouts for Marathon provider. The timeouts were given without a unit, which caused nanoseconds scale to be applied when we switched the type from int to flaeg.Duration. --- configuration.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configuration.go b/configuration.go index d3150de44..f48a5b46a 100644 --- a/configuration.go +++ b/configuration.go @@ -371,8 +371,8 @@ func NewTraefikDefaultPointersConfiguration() *TraefikConfiguration { defaultMarathon.Endpoint = "http://127.0.0.1:8080" defaultMarathon.ExposedByDefault = true defaultMarathon.Constraints = types.Constraints{} - defaultMarathon.DialerTimeout = 60 - defaultMarathon.KeepAlive = 10 + defaultMarathon.DialerTimeout = flaeg.Duration(60 * time.Second) + defaultMarathon.KeepAlive = flaeg.Duration(10 * time.Second) // default Consul var defaultConsul consul.Provider