Skip to content

Commit

Permalink
chore: fix loop span (#6)
Browse files Browse the repository at this point in the history
* chore: fix loop span
  • Loading branch information
rkrasiuk authored Mar 3, 2024
1 parent 4c4f32f commit 8435df5
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions src/hash_builder/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -174,20 +174,8 @@ impl HashBuilder {
trace!(target: "trie::hash_builder", ?current, ?succeeding, "updating merkle tree");

let mut i = 0usize;
let span = tracing::trace_span!(
target: "trie::hash_builder",
"loop",
i = tracing::field::Empty,
current = tracing::field::Empty,
build_extensions = tracing::field::Empty,
)
.entered();
loop {
if !span.is_disabled() {
span.record("i", i);
span.record("current", &format!("{current:?}"));
span.record("build_extensions", build_extensions);
}
let _span = tracing::trace_span!(target: "trie::hash_builder", "loop", i, ?current, build_extensions).entered();

let preceding_exists = !self.groups.is_empty();
let preceding_len = self.groups.len().saturating_sub(1);
Expand Down

0 comments on commit 8435df5

Please sign in to comment.