Skip to content

Commit

Permalink
fix: remove debug assert dependend traces (paradigmxyz#6434)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsse authored Feb 6, 2024
1 parent e810687 commit a015c97
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions crates/net/network/src/transactions/fetcher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -315,8 +315,6 @@ impl TransactionFetcher {
peer_id: PeerId,
is_session_active: impl Fn(PeerId) -> bool,
) {
#[cfg(debug_assertions)]
let mut previously_unseen_hashes = Vec::with_capacity(new_announced_hashes.len() / 4);
let msg_version = new_announced_hashes.msg_version();

// filter out inflight hashes, and register the peer as fallback for all inflight hashes
Expand Down Expand Up @@ -345,8 +343,6 @@ impl TransactionFetcher {
}

// vacant entry
#[cfg(debug_assertions)]
previously_unseen_hashes.push(hash);

trace!(target: "net::tx",
peer_id=format!("{peer_id:#}"),
Expand Down Expand Up @@ -376,8 +372,6 @@ impl TransactionFetcher {

trace!(target: "net::tx",
peer_id=format!("{peer_id:#}"),
previously_unseen_hashes_len=previously_unseen_hashes.len(),
previously_unseen_hashes=?previously_unseen_hashes,
msg_version=%msg_version,
"received previously unseen hashes in announcement from peer"
);
Expand Down

0 comments on commit a015c97

Please sign in to comment.