mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-11-08 19:57:06 +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:
1 parent
ac3c88fd34
commit
84e402389b
5 files changed
+12
-31
No files matched your search
@@ -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