Skip to content

Commit

Permalink
fix: comment
Browse files Browse the repository at this point in the history
  • Loading branch information
atanmarko committed Nov 13, 2024
1 parent a8d5b62 commit 86d619a
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions zero/src/prover.rs
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,8 @@ impl BlockProverInput {
};

// Generate channels to communicate segments of each batch to a batch proving
// task. We generate a segment and send it to the proving task, then
// wait for it to be proved before we send another segment. This is done
// to avoid memory exhaustion.
// task. We generate segments and send them to the proving task, where they
// are proven in parallel.
let (segment_senders, segment_receivers): (Vec<_>, Vec<_>) = (0..batch_count)
.map(|_idx| {
let (segment_tx, segment_rx) =
Expand Down Expand Up @@ -220,7 +219,7 @@ impl BlockProverInput {
// Prove one segment in a dedicated async task.
let segment_proving_task = tokio::spawn(async move {
if let Some(segment_data) = segment_data {
debug!("proving the batch {batch_idx} segment data {segment_counter}");
debug!("proving the batch {batch_idx} segment nr. {segment_counter}");
let seg_aggregatable_proof= Directive::map(
IndexedStream::from([segment_data]),
&seg_prove_ops,
Expand Down

0 comments on commit 86d619a

Please sign in to comment.