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 package health
type Status int type Status uint8
const ( const (
StatusUnknown Status = (iota << 1) StatusUnknown Status = 0
StatusHealthy = (1 << iota)
StatusHealthy
StatusNapping StatusNapping
StatusStarting StatusStarting
StatusUnhealthy StatusUnhealthy