updated health status impl

This commit is contained in:
yusing 2024-11-10 06:35:56 +08:00
parent cceebff93a
commit a1d1325ad6

View file

@ -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