mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 00:01:09 +00:00
Name all the tasks! (#6726)
* Remove any implementation of `Spawn` or `Executor` from our task executors * Fix compilation * Rename `SpawnBlockingExecutor` * Update primitives/core/src/traits.rs Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com> * Fix tests Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com>
This commit is contained in:
@@ -19,9 +19,8 @@
|
||||
//! Light client components.
|
||||
|
||||
use sp_runtime::traits::{Block as BlockT, HashFor};
|
||||
use sc_client_api::CloneableSpawn;
|
||||
use std::sync::Arc;
|
||||
use sp_core::traits::CodeExecutor;
|
||||
use sp_core::traits::{CodeExecutor, SpawnNamed};
|
||||
|
||||
pub mod backend;
|
||||
pub mod blockchain;
|
||||
@@ -34,7 +33,7 @@ pub use {backend::*, blockchain::*, call_executor::*, fetcher::*};
|
||||
pub fn new_fetch_checker<E, B: BlockT, S: BlockchainStorage<B>>(
|
||||
blockchain: Arc<Blockchain<S>>,
|
||||
executor: E,
|
||||
spawn_handle: Box<dyn CloneableSpawn>,
|
||||
spawn_handle: Box<dyn SpawnNamed>,
|
||||
) -> LightDataChecker<E, HashFor<B>, B, S>
|
||||
where
|
||||
E: CodeExecutor,
|
||||
|
||||
Reference in New Issue
Block a user