From f2ea8eb2cfd573ae3d50974098c2703d0b981816 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sun, 26 May 2019 17:18:15 +0200 Subject: [PATCH] Ensure HealthChecks can be disabled --- src/Settings.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Settings.hs b/src/Settings.hs index ce28237a3..884b1bd35 100644 --- a/src/Settings.hs +++ b/src/Settings.hs @@ -389,7 +389,7 @@ instance FromJSON AppSettings where appJwtExpiration <- o .:? "jwt-expiration" appJwtEncoding <- o .: "jwt-encoding" - appHealthCheckInterval <- o .: "health-check-interval" + appHealthCheckInterval <- (assertM' (> 0) . ) <$> o .: "health-check-interval" appHealthCheckDelayNotify <- o .: "health-check-delay-notify" appHealthCheckHTTP <- o .: "health-check-http"