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