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:
@@ -47,7 +47,7 @@ use std::io;
|
||||
use std::collections::HashMap;
|
||||
|
||||
use sc_client_api::{
|
||||
ForkBlocks, UsageInfo, MemoryInfo, BadBlocks, IoInfo, MemorySize,
|
||||
ForkBlocks, UsageInfo, MemoryInfo, BadBlocks, IoInfo, MemorySize, CloneableSpawn,
|
||||
execution_extensions::ExecutionExtensions,
|
||||
backend::{NewBlockState, PrunableStateChangesTrieStorage},
|
||||
};
|
||||
@@ -292,6 +292,7 @@ pub fn new_client<E, Block, RA>(
|
||||
fork_blocks: ForkBlocks<Block>,
|
||||
bad_blocks: BadBlocks<Block>,
|
||||
execution_extensions: ExecutionExtensions<Block>,
|
||||
spawn_handle: Box<dyn CloneableSpawn>,
|
||||
prometheus_registry: Option<Registry>,
|
||||
) -> Result<(
|
||||
sc_client::Client<
|
||||
@@ -309,7 +310,7 @@ pub fn new_client<E, Block, RA>(
|
||||
E: CodeExecutor + RuntimeInfo,
|
||||
{
|
||||
let backend = Arc::new(Backend::new(settings, CANONICALIZATION_DELAY)?);
|
||||
let executor = sc_client::LocalCallExecutor::new(backend.clone(), executor);
|
||||
let executor = sc_client::LocalCallExecutor::new(backend.clone(), executor, spawn_handle);
|
||||
Ok((
|
||||
sc_client::Client::new(
|
||||
backend.clone(),
|
||||
|
||||
Reference in New Issue
Block a user