Skip to content

Commit

Permalink
Improve clarity of an info!() message
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastiandanconia committed Oct 30, 2024
1 parent ebaee9e commit 3b92f36
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/execute.rs
Original file line number Diff line number Diff line change
Expand Up @@ -677,11 +677,12 @@ pub(crate) async fn get_srs_cmd(
pb.finish_with_message("SRS validated.");

info!("Saving SRS to disk...");
let mut file = std::fs::File::create(get_srs_path(k, srs_path.clone(), commitment))?;
let computed_srs_path = get_srs_path(k, srs_path.clone(), commitment);
let mut file = std::fs::File::create(&computed_srs_path)?;
let mut buffer = BufWriter::with_capacity(*EZKL_BUF_CAPACITY, &mut file);
params.write(&mut buffer)?;

info!("Saved SRS to disk.");
info!("Saved SRS to {}.", computed_srs_path.as_os_str().to_str().unwrap_or("disk"));

info!("SRS downloaded");
} else {
Expand Down

0 comments on commit 3b92f36

Please sign in to comment.