Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

Commit

Permalink
fix: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
atanmarko committed Jun 14, 2024
1 parent 82cc1c4 commit e96fbdf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion leader/src/jerigon.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,9 @@ pub(crate) async fn jerigon_main(
params.save_inputs_on_error,
params.proof_output_dir.clone(),
)
.await?;
.await;
runtime.close().await?;
let proved_blocks = proved_blocks?;

if params.keep_intermediate_proofs {
warn!("Skipping cleanup, intermediate proofs are kept");
Expand Down
3 changes: 2 additions & 1 deletion leader/src/stdio.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,9 @@ pub(crate) async fn stdio_main(

let proved_blocks = prover_input
.prove(&runtime, previous, save_inputs_on_error, None)
.await?;
.await;
runtime.close().await?;
let proved_blocks = proved_blocks?;

let proofs: Vec<GeneratedBlockProof> = proved_blocks
.into_iter()
Expand Down

0 comments on commit e96fbdf

Please sign in to comment.