Skip to content

Commit

Permalink
Remove guard preventing -service-refresh flag being greater than 10 m…
Browse files Browse the repository at this point in the history
…inutes. (#113)
  • Loading branch information
phamann committed Sep 14, 2022
1 parent 4bc1867 commit d3671d2
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions cmd/fastly-exporter/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d3671d2

Please sign in to comment.