From a1d1325ad6b39d69e49f3fc6b6c58cdce2766c20 Mon Sep 17 00:00:00 2001 From: yusing Date: Sun, 10 Nov 2024 06:35:56 +0800 Subject: [PATCH] updated health status impl --- internal/watcher/health/status.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/internal/watcher/health/status.go b/internal/watcher/health/status.go index 9d4fd29..3202cac 100644 --- a/internal/watcher/health/status.go +++ b/internal/watcher/health/status.go @@ -1,11 +1,10 @@ package health -type Status int +type Status uint8 const ( - StatusUnknown Status = (iota << 1) - - StatusHealthy + StatusUnknown Status = 0 + StatusHealthy = (1 << iota) StatusNapping StatusStarting StatusUnhealthy