From 7ab0bf76090f704d3dd9f293a52302ae541c63f5 Mon Sep 17 00:00:00 2001 From: Ratan Kaliani Date: Mon, 18 Mar 2024 11:25:21 -0700 Subject: [PATCH] user defined timeout --- plonky2x/core/src/backend/prover/remote.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plonky2x/core/src/backend/prover/remote.rs b/plonky2x/core/src/backend/prover/remote.rs index 5ad28479..fc544168 100644 --- a/plonky2x/core/src/backend/prover/remote.rs +++ b/plonky2x/core/src/backend/prover/remote.rs @@ -63,7 +63,7 @@ impl RemoteProver { // Default timeout for a proof is 60 minutes. Users can override this value by // setting the PROOF_TIMEOUT_MINS environment variable. - const DEFAULT_PROOF_TIMEOUT_MINS: usize = 60; + const DEFAULT_PROOF_TIMEOUT_MINS: u64 = 60; let proof_timeout_mins = env::var("PROOF_TIMEOUT_MINS").unwrap_or(DEFAULT_PROOF_TIMEOUT_MINS.to_string()); let proof_timeout_secs = proof_timeout_mins.parse::().unwrap() * 60; @@ -123,7 +123,7 @@ impl RemoteProver { // Default timeout for a batch proof is 60 minutes. Users can override this value by // setting the BATCH_PROOF_TIMEOUT_MINS environment variable. - const DEFAULT_BATCH_PROOF_TIMEOUT_MINS: usize = 60; + const DEFAULT_BATCH_PROOF_TIMEOUT_MINS: u64 = 60; let proof_timeout_mins = env::var("BATCH_PROOF_TIMEOUT_MINS") .unwrap_or(DEFAULT_BATCH_PROOF_TIMEOUT_MINS.to_string()); let proof_timeout_secs = proof_timeout_mins.parse::().unwrap() * 60;