mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-09 20:11:09 +00:00
create parallel tasks extension (#5249)
This commit is contained in:
@@ -23,7 +23,7 @@ pub mod client_ext;
|
||||
pub use sc_client::{blockchain, self};
|
||||
pub use sc_client_api::{
|
||||
execution_extensions::{ExecutionStrategies, ExecutionExtensions},
|
||||
ForkBlocks, BadBlocks,
|
||||
ForkBlocks, BadBlocks, CloneableSpawn,
|
||||
};
|
||||
pub use sc_client_db::{Backend, self};
|
||||
pub use sp_consensus;
|
||||
@@ -33,7 +33,7 @@ pub use sp_keyring::{
|
||||
ed25519::Keyring as Ed25519Keyring,
|
||||
sr25519::Keyring as Sr25519Keyring,
|
||||
};
|
||||
pub use sp_core::traits::BareCryptoStorePtr;
|
||||
pub use sp_core::{traits::BareCryptoStorePtr, tasks::executor as tasks_executor};
|
||||
pub use sp_runtime::{Storage, StorageChild};
|
||||
pub use sp_state_machine::ExecutionStrategy;
|
||||
pub use self::client_ext::{ClientExt, ClientBlockImportExt};
|
||||
@@ -246,7 +246,7 @@ impl<Block: BlockT, E, Backend, G: GenesisInit> TestClientBuilder<
|
||||
let executor = executor.into().unwrap_or_else(||
|
||||
NativeExecutor::new(WasmExecutionMethod::Interpreted, None, 8)
|
||||
);
|
||||
let executor = LocalCallExecutor::new(self.backend.clone(), executor);
|
||||
let executor = LocalCallExecutor::new(self.backend.clone(), executor, tasks_executor());
|
||||
|
||||
self.build_with_executor(executor)
|
||||
}
|
||||
|
||||
@@ -349,7 +349,7 @@ pub fn new_light() -> (
|
||||
let blockchain = Arc::new(sc_client::light::blockchain::Blockchain::new(storage));
|
||||
let backend = Arc::new(LightBackend::new(blockchain.clone()));
|
||||
let executor = new_native_executor();
|
||||
let local_call_executor = sc_client::LocalCallExecutor::new(backend.clone(), executor);
|
||||
let local_call_executor = sc_client::LocalCallExecutor::new(backend.clone(), executor, sp_core::tasks::executor());
|
||||
let call_executor = LightExecutor::new(
|
||||
backend.clone(),
|
||||
local_call_executor,
|
||||
|
||||
Reference in New Issue
Block a user