Skip to content

Commit 767e685

Browse files
author
eigmax
committed
chore: stash
1 parent 1f468db commit 767e685

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sdk/src/local/prover.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use std::thread;
77
use std::time::Duration;
88
use std::time::Instant;
99
use tokio::time::sleep;
10-
10+
use anyhow::bail;
1111
pub struct ProverTask {
1212
proof_id: String,
1313
input: ProverInput,
@@ -32,7 +32,7 @@ impl ProverTask {
3232
let key_path = self.key_path.to_owned();
3333
let inputdir = format!("/tmp/{}/input", self.proof_id);
3434
let outputdir = format!("/tmp/{}/output", self.proof_id);
35-
log::debug!("key_path: {key_path}, input: {inputdir}, output: {outputdir}");
35+
println!("input: {}", self.input);
3636
fs::create_dir_all(&key_path).unwrap();
3737
fs::create_dir_all(&inputdir).unwrap();
3838
fs::create_dir_all(&outputdir).unwrap();
@@ -138,7 +138,7 @@ impl Prover for LocalProver {
138138
loop {
139139
if let Some(timeout) = timeout {
140140
if start_time.elapsed() > timeout {
141-
return Err(anyhow::anyhow!("Proof generation timed out."));
141+
bail!("Proof generation timed out.");
142142
}
143143
}
144144
if task.lock().unwrap().is_done() {

0 commit comments

Comments
 (0)