diff --git a/substrate/client/transaction-pool/src/fork_aware_txpool/tx_mem_pool.rs b/substrate/client/transaction-pool/src/fork_aware_txpool/tx_mem_pool.rs index 463ff938a7fb..c1dd50ea6378 100644 --- a/substrate/client/transaction-pool/src/fork_aware_txpool/tx_mem_pool.rs +++ b/substrate/client/transaction-pool/src/fork_aware_txpool/tx_mem_pool.rs @@ -26,10 +26,7 @@ //! it), while on other forks tx can be valid. Depending on which view is chosen to be cloned, //! such transaction could not be present in the newly created view. -use super::{ - dropped_watcher::DroppedTransaction, metrics::MetricsLink as PrometheusMetrics, - multi_view_listener::MultiViewListener, -}; +use super::{metrics::MetricsLink as PrometheusMetrics, multi_view_listener::MultiViewListener}; use crate::{ common::log_xt::log_xt_trace, graph, diff --git a/substrate/client/transaction-pool/src/single_state_txpool/revalidation.rs b/substrate/client/transaction-pool/src/single_state_txpool/revalidation.rs index ed5824c884ef..5368ff71d602 100644 --- a/substrate/client/transaction-pool/src/single_state_txpool/revalidation.rs +++ b/substrate/client/transaction-pool/src/single_state_txpool/revalidation.rs @@ -88,7 +88,7 @@ async fn batch_revalidate( let validation_results = futures::future::join_all(batch.into_iter().filter_map(|ext_hash| { pool.validated_pool().ready_by_hash(&ext_hash).map(|ext| { - api.validate_transaction(at, ext.source.source.clone(), ext.data.clone()) + api.validate_transaction(at, ext.source.source, ext.data.clone()) .map(move |validation_result| (validation_result, ext_hash, ext)) }) }))