v0.35.0
This commit is contained in:
1 parent
2c03fcf248
commit
d3b492874b
95 files changed
+1628
-743
No files matched your search
@@ -116,14 +116,15 @@ impl BackendState {
|
||||
return true;
|
||||
}
|
||||
let mut h = lock(&self.health);
|
||||
if !h.passive_healthy && h.active_healthy && !h.checked {
|
||||
if h.passive_ejected_at
|
||||
if !h.passive_healthy
|
||||
&& h.active_healthy
|
||||
&& !h.checked
|
||||
&& h.passive_ejected_at
|
||||
.is_some_and(|at| at.elapsed() >= h.passive_cooldown)
|
||||
{
|
||||
let previous = h.healthy;
|
||||
Self::clear_passive_ejection(&mut h);
|
||||
self.finish_transition(&mut h, previous);
|
||||
}
|
||||
{
|
||||
let previous = h.healthy;
|
||||
Self::clear_passive_ejection(&mut h);
|
||||
self.finish_transition(&mut h, previous);
|
||||
}
|
||||
h.healthy
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user