diff --git a/bin/proving-service/src/proxy/health_check.rs b/bin/proving-service/src/proxy/health_check.rs index b10b96ced..06946472a 100644 --- a/bin/proving-service/src/proxy/health_check.rs +++ b/bin/proving-service/src/proxy/health_check.rs @@ -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; diff --git a/bin/proving-service/src/proxy/mod.rs b/bin/proving-service/src/proxy/mod.rs index 7805d12e3..aefde3eed 100644 --- a/bin/proving-service/src/proxy/mod.rs +++ b/bin/proving-service/src/proxy/mod.rs @@ -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 { @@ -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), }) }