From d3671d2229d022782509022f308e351d73a7e684 Mon Sep 17 00:00:00 2001 From: Patrick Hamann Date: Wed, 14 Sep 2022 16:39:35 +0100 Subject: [PATCH] Remove guard preventing -service-refresh flag being greater than 10 minutes. (#113) --- cmd/fastly-exporter/main.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/cmd/fastly-exporter/main.go b/cmd/fastly-exporter/main.go index 6e9469e..ed24861 100644 --- a/cmd/fastly-exporter/main.go +++ b/cmd/fastly-exporter/main.go @@ -131,10 +131,6 @@ func main() { level.Warn(logger).Log("msg", "-service-refresh cannot be shorter than 15s; setting it to 15s") serviceRefresh = 15 * time.Second } - if serviceRefresh > 10*time.Minute { - level.Warn(logger).Log("msg", "-service-refresh cannot be longer than 10m; setting it to 10m") - serviceRefresh = 10 * time.Minute - } if apiTimeout < 5*time.Second { level.Warn(logger).Log("msg", "-api-timeout cannot be shorter than 5s; setting it to 5s") apiTimeout = 5 * time.Second