summaryrefslogtreecommitdiff
path: root/internal/config
diff options
context:
space:
mode:
Diffstat (limited to 'internal/config')
-rw-r--r--internal/config/constants.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/internal/config/constants.go b/internal/config/constants.go
index 9eba843..1311302 100644
--- a/internal/config/constants.go
+++ b/internal/config/constants.go
@@ -21,6 +21,12 @@ const (
// RequestTimeout is the timeout for individual HTTP requests
RequestTimeout = 60 * time.Second
+
+ // HealthCheckTimeout bounds the DB ping /health performs. Short and
+ // separate from HTTPClientTimeout: a health check that itself hangs for
+ // 15s isn't fast enough for a watchdog polling every few minutes to be
+ // useful.
+ HealthCheckTimeout = 3 * time.Second
)
// Default meal times (24-hour format)