Revert "Use SpawnTaskHandles for spawning tasks in the tx pool (#8958)" (#8983)

This reverts commit 84e402389b.
This commit is contained in:
Ashley
2021-06-01 17:14:33 +02:00
committed by GitHub
parent bf229f0ba4
commit c408515501
5 changed files with 31 additions and 12 deletions
+2 -2
View File
@@ -366,10 +366,10 @@ where
options: sc_transaction_graph::Options,
is_validator: txpool::IsValidator,
prometheus: Option<&PrometheusRegistry>,
spawner: impl SpawnNamed + Clone + 'static,
spawner: impl SpawnNamed,
client: Arc<Client>,
) -> Arc<Self> {
let pool_api = Arc::new(FullChainApi::new(client.clone(), prometheus, spawner.clone()));
let pool_api = Arc::new(FullChainApi::new(client.clone(), prometheus));
let pool = Arc::new(Self::with_revalidation_type(
options, is_validator, pool_api, prometheus, RevalidationType::Full, spawner
));