Skip to content

Commit

Permalink
refactor: update aux trace building logging (#255)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fumuran authored Feb 29, 2024
1 parent 2e324e2 commit 86ec904
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion prover/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ pub trait Prover {
for i in 0..trace.layout().num_aux_segments() {
let num_columns = trace.layout().get_aux_segment_width(i);
let (aux_segment, rand_elements) = {
let _ = info_span!("build_aux_trace_segment", num_columns).entered();
let span = info_span!("build_aux_trace_segment", num_columns).entered();

// draw a set of random elements required to build an auxiliary trace segment
let rand_elements = channel.get_aux_trace_segment_rand_elements(i);
Expand All @@ -296,6 +296,7 @@ pub trait Prover {
.build_aux_segment(&aux_trace_segments, &rand_elements)
.expect("failed build auxiliary trace segment");

drop(span);
(aux_segment, rand_elements)
};
assert_eq!(aux_segment.num_cols(), num_columns);
Expand Down

0 comments on commit 86ec904

Please sign in to comment.