Merge branch 'main' into healthcheck

This commit is contained in:
Ning Qi (Paul) Sun
2025-12-10 18:59:20 -05:00
committed by GitHub

View File

@@ -72,7 +72,7 @@ impl Balancer for AdaptiveWeightBalancer {
let safe_w_sum = w_sum.max(1e-12);
let threshold = self.alpha * (r_sum / safe_w_sum);
for idx in 0..self.pool.len() {
let node = &self.pool[idx];
@@ -264,4 +264,4 @@ mod tests {
// expect server with smallest current_load server-1
assert_eq!(chosen.id, "server-1");
}
}
}