Skip to content

Commit

Permalink
user defined timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
ratankaliani committed Mar 18, 2024
1 parent 458e582 commit 7ab0bf7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plonky2x/core/src/backend/prover/remote.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::<u64>().unwrap() * 60;
Expand Down Expand Up @@ -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::<u64>().unwrap() * 60;
Expand Down

0 comments on commit 7ab0bf7

Please sign in to comment.