diff --git a/substrate/client/transaction-pool/src/common/mod.rs b/substrate/client/transaction-pool/src/common/mod.rs index 66a5ad86b1bf..446a5c2ec022 100644 --- a/substrate/client/transaction-pool/src/common/mod.rs +++ b/substrate/client/transaction-pool/src/common/mod.rs @@ -22,10 +22,10 @@ pub(crate) mod api; pub(crate) mod enactment_state; pub(crate) mod error; pub(crate) mod log_xt; -pub(crate) mod tracing_log_xt; pub(crate) mod metrics; #[cfg(test)] pub(crate) mod tests; +pub(crate) mod tracing_log_xt; use futures::StreamExt; use std::sync::Arc; diff --git a/substrate/client/transaction-pool/src/common/tracing_log_xt.rs b/substrate/client/transaction-pool/src/common/tracing_log_xt.rs index 2fb4abc9a7c4..b80f049f1b22 100644 --- a/substrate/client/transaction-pool/src/common/tracing_log_xt.rs +++ b/substrate/client/transaction-pool/src/common/tracing_log_xt.rs @@ -45,4 +45,4 @@ macro_rules! log_xt_trace { } pub(crate) use log_xt; -pub(crate) use log_xt_trace; \ No newline at end of file +pub(crate) use log_xt_trace; diff --git a/substrate/client/transaction-pool/src/fork_aware_txpool/dropped_watcher.rs b/substrate/client/transaction-pool/src/fork_aware_txpool/dropped_watcher.rs index 62f1badd5326..c5a281b7fdbb 100644 --- a/substrate/client/transaction-pool/src/fork_aware_txpool/dropped_watcher.rs +++ b/substrate/client/transaction-pool/src/fork_aware_txpool/dropped_watcher.rs @@ -28,7 +28,6 @@ use crate::{ LOG_TARGET, }; use futures::stream::StreamExt; -use tracing::{debug, trace}; use sc_transaction_pool_api::TransactionStatus; use sc_utils::mpsc; use sp_runtime::traits::Block as BlockT; @@ -41,6 +40,7 @@ use std::{ pin::Pin, }; use tokio_stream::StreamMap; +use tracing::{debug, trace}; /// Represents a transaction that was removed from the transaction pool, including the reason of its /// removal. @@ -276,7 +276,7 @@ where } } else { let tx_hash_string = format!("{:?}", tx_hash); - debug!(tx_hash_string, "dropped_watcher: removing (non-tracked) tx" ); + debug!(tx_hash_string, "dropped_watcher: removing (non-tracked) tx"); return Some(DroppedTransaction::new_enforced_by_limts(tx_hash)) } }, diff --git a/substrate/client/transaction-pool/src/fork_aware_txpool/import_notification_sink.rs b/substrate/client/transaction-pool/src/fork_aware_txpool/import_notification_sink.rs index 2be702e51790..9e65955f53e9 100644 --- a/substrate/client/transaction-pool/src/fork_aware_txpool/import_notification_sink.rs +++ b/substrate/client/transaction-pool/src/fork_aware_txpool/import_notification_sink.rs @@ -27,7 +27,6 @@ use futures::{ stream::StreamExt, Future, FutureExt, }; -use tracing::trace; use parking_lot::RwLock; use sc_utils::mpsc; use std::{ @@ -38,6 +37,7 @@ use std::{ sync::Arc, }; use tokio_stream::StreamMap; +use tracing::trace; /// A type alias for a pinned, boxed stream of items of type `I`. /// This alias is particularly useful for defining the types of the incoming streams from various diff --git a/substrate/client/transaction-pool/src/fork_aware_txpool/multi_view_listener.rs b/substrate/client/transaction-pool/src/fork_aware_txpool/multi_view_listener.rs index 60424e71c3a9..7bfbf3a6ca5b 100644 --- a/substrate/client/transaction-pool/src/fork_aware_txpool/multi_view_listener.rs +++ b/substrate/client/transaction-pool/src/fork_aware_txpool/multi_view_listener.rs @@ -26,7 +26,6 @@ use crate::{ LOG_TARGET, }; use futures::StreamExt; -use tracing::{debug, trace}; use sc_transaction_pool_api::{TransactionStatus, TransactionStatusStream, TxIndex}; use sc_utils::mpsc; use sp_runtime::traits::Block as BlockT; @@ -35,6 +34,7 @@ use std::{ pin::Pin, }; use tokio_stream::StreamMap; +use tracing::{debug, trace}; use super::dropped_watcher::{DroppedReason, DroppedTransaction};