[router] refactor worker to builder pattern 1/n (#10628)

This commit is contained in:
Simo Lin
2025-09-18 16:25:40 -04:00
committed by GitHub
parent 67073dde85
commit 5291f32d75
4 changed files with 451 additions and 2 deletions

View File

@@ -390,7 +390,7 @@ impl WorkerRegistry {
// Reset loads periodically
check_count += 1;
if check_count % LOAD_RESET_INTERVAL == 0 {
if check_count.is_multiple_of(LOAD_RESET_INTERVAL) {
tracing::debug!("Resetting worker loads (cycle {})", check_count);
for worker in &workers {
worker.reset_load();