File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ use std::thread;
77use std:: time:: Duration ;
88use std:: time:: Instant ;
99use tokio:: time:: sleep;
10-
10+ use anyhow :: bail ;
1111pub 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 ( ) {
You can’t perform that action at this time.
0 commit comments