Skip to content

Commit

Permalink
review: rename health check frequency
Browse files Browse the repository at this point in the history
  • Loading branch information
SantiagoPittella committed Jan 30, 2025
1 parent 5353d9d commit b5000af
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bin/proving-service/src/proxy/health_check.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ impl BackgroundService for LoadBalancerState {
WORKER_UNHEALTHY.inc_by(unhealthy_workers as u64);

// Sleep for the defined interval before the next health check
sleep(self.health_check_frequency).await;
sleep(self.health_check_interval).await;
}
})
.await;
Expand Down
4 changes: 2 additions & 2 deletions bin/proving-service/src/proxy/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ pub struct LoadBalancerState {
max_retries_per_request: usize,
max_req_per_sec: isize,
available_workers_polling_time: Duration,
health_check_frequency: Duration,
health_check_interval: Duration,
}

impl LoadBalancerState {
Expand Down Expand Up @@ -94,7 +94,7 @@ impl LoadBalancerState {
available_workers_polling_time: Duration::from_millis(
config.available_workers_polling_time_ms,
),
health_check_frequency: Duration::from_secs(config.health_check_interval_secs),
health_check_interval: Duration::from_secs(config.health_check_interval_secs),
})
}

Expand Down

0 comments on commit b5000af

Please sign in to comment.