From 09c64202b639521d1d58d688f06b50efa55f93db Mon Sep 17 00:00:00 2001 From: DaniPopes <57450786+DaniPopes@users.noreply.github.com> Date: Fri, 20 Dec 2024 13:36:26 +0200 Subject: [PATCH] chore: fix unused import in net fetcher (#13474) --- crates/net/network/src/transactions/fetcher.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/net/network/src/transactions/fetcher.rs b/crates/net/network/src/transactions/fetcher.rs index e52c73f03..b79e78461 100644 --- a/crates/net/network/src/transactions/fetcher.rs +++ b/crates/net/network/src/transactions/fetcher.rs @@ -61,7 +61,7 @@ use std::{ time::Duration, }; use tokio::sync::{mpsc::error::TrySendError, oneshot, oneshot::error::RecvError}; -use tracing::{debug, trace}; +use tracing::trace; use validation::FilterOutcome; /// The type responsible for fetching missing transactions from peers. @@ -626,7 +626,7 @@ impl TransactionFetcher { { for hash in &new_announced_hashes { if self.hashes_pending_fetch.contains(hash) { - debug!(target: "net::tx", "`{}` should have been taken out of buffer before packing in a request, breaks invariant `@hashes_pending_fetch` and `@inflight_requests`, `@hashes_fetch_inflight_and_pending_fetch` for `{}`: {:?}", + tracing::debug!(target: "net::tx", "`{}` should have been taken out of buffer before packing in a request, breaks invariant `@hashes_pending_fetch` and `@inflight_requests`, `@hashes_fetch_inflight_and_pending_fetch` for `{}`: {:?}", format!("{:?}", new_announced_hashes), // Assuming new_announced_hashes can be debug-printed directly format!("{:?}", new_announced_hashes), new_announced_hashes.iter().map(|hash| {