pull/2481/head
FengbinShi 2 years ago
parent 3d6f8a4e18
commit 5ccc34aa08
  1. 10
      health/checker.go

@ -55,7 +55,9 @@ func (c *checkerHandler) getName() string {
func (c *checkerHandler) check(ctx context.Context) bool {
defer func() {
recover()
if err := recover(); err != nil {
}
}()
var cancel func()
@ -78,10 +80,8 @@ func (c *checkerHandler) check(ctx context.Context) bool {
Detail: detail,
Err: err,
}
if c.CheckerStatus == old {
return false
}
return true
return c.CheckerStatus != old
}
func (c *checkerHandler) run(ctx context.Context) {

Loading…
Cancel
Save