mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-12 22:51:13 +00:00
Use SpawnTaskHandles for spawning tasks in the tx pool (#8958)
* Remove futures-diagnose * Use `SpawnTaskHandle`s for spawning tasks in the tx pool * Box the spawner * Fix tests * Use the testing task executor
This commit is contained in:
@@ -366,10 +366,10 @@ where
|
||||
options: sc_transaction_graph::Options,
|
||||
is_validator: txpool::IsValidator,
|
||||
prometheus: Option<&PrometheusRegistry>,
|
||||
spawner: impl SpawnNamed,
|
||||
spawner: impl SpawnNamed + Clone + 'static,
|
||||
client: Arc<Client>,
|
||||
) -> Arc<Self> {
|
||||
let pool_api = Arc::new(FullChainApi::new(client.clone(), prometheus));
|
||||
let pool_api = Arc::new(FullChainApi::new(client.clone(), prometheus, spawner.clone()));
|
||||
let pool = Arc::new(Self::with_revalidation_type(
|
||||
options, is_validator, pool_api, prometheus, RevalidationType::Full, spawner
|
||||
));
|
||||
|
||||
Reference in New Issue
Block a user