This commit is contained in:
Mateusz Gruszczyński committed 2026-10-31 23:42:58 +01:00
1 parent 2c03fcf248
commit d3b492874b
95 files changed
+1628 -743

No files matched your search

+8 -7
View File
@@ -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
}