Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: fix availability checker #1574

Merged
merged 14 commits into from
Apr 10, 2024
4 changes: 2 additions & 2 deletions prover/prover_fri/src/gpu_prover_availability_checker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ pub mod availability_checker {
stop_receiver: tokio::sync::watch::Receiver<bool>,
) -> anyhow::Result<()> {
while !*stop_receiver.borrow() {
tokio::time::sleep(self.polling_interval).await;
Artemka374 marked this conversation as resolved.
Show resolved Hide resolved

let status = self
.pool
.connection()
Expand Down Expand Up @@ -69,8 +71,6 @@ pub mod availability_checker {
}
Some(_) => (),
}

tokio::time::sleep(self.polling_interval).await;
}

tracing::info!("Availability checker was shut down");
Expand Down