mirror of
https://github.com/zeromicro/go-zero.git
synced 2026-05-14 18:30:02 +08:00
fix: health check problem (#4590)
This commit is contained in:
@@ -111,6 +111,10 @@ func (p *comboHealthManager) IsReady() bool {
|
||||
p.mu.Lock()
|
||||
defer p.mu.Unlock()
|
||||
|
||||
if len(p.probes) == 0 {
|
||||
return false
|
||||
}
|
||||
|
||||
for _, probe := range p.probes {
|
||||
if !probe.IsReady() {
|
||||
return false
|
||||
|
||||
Reference in New Issue
Block a user