fix: health check problem (#4590)

This commit is contained in:
Kevin Wan
2025-01-22 19:32:28 +08:00
committed by GitHub
parent 030c859171
commit 1023800b02
6 changed files with 24 additions and 19 deletions

View File

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