From e6705599b334756a1b81a0109026c1b2216ed75a Mon Sep 17 00:00:00 2001 From: Pasha Sviderski Date: Sat, 28 Feb 2026 16:03:36 +1000 Subject: [PATCH] chore: rename env var UNCLOUD_DEFAULT_HEALTH_MONITOR_PERIOD_MS -> UNCLOUD_HEALTH_MONITOR_PERIOD_MS --- pkg/api/container.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/api/container.go b/pkg/api/container.go index 90aa64f4..b9f69365 100644 --- a/pkg/api/container.go +++ b/pkg/api/container.go @@ -262,11 +262,11 @@ func (c *ServiceContainer) UnmarshalJSON(data []byte) error { } // DefaultHealthMonitorPeriod is the default duration to wait before checking that the container is still running -// and not restarting. Can be overridden with the UNCLOUD_DEFAULT_HEALTH_MONITOR_PERIOD_MS environment variable. +// and not restarting. Can be overridden with the UNCLOUD_HEALTH_MONITOR_PERIOD_MS environment variable. var DefaultHealthMonitorPeriod = defaultHealthMonitorPeriod() func defaultHealthMonitorPeriod() time.Duration { - if v, ok := os.LookupEnv("UNCLOUD_DEFAULT_HEALTH_MONITOR_PERIOD_MS"); ok { + if v, ok := os.LookupEnv("UNCLOUD_HEALTH_MONITOR_PERIOD_MS"); ok { if ms, err := strconv.Atoi(v); err == nil { return time.Duration(ms) * time.Millisecond }