refactor(tasks): remove TaskSpawner trait in favor of concrete Runtime (#22052)

Co-authored-by: Amp <amp@ampcode.com>
This commit is contained in:
Georgios Konstantopoulos
2026-02-16 00:51:10 -08:00
committed by GitHub
parent 74abad29ad
commit 57148eac9f
44 changed files with 433 additions and 749 deletions

View File

@@ -986,7 +986,7 @@ impl<Node: FullNodeTypes<Types: NodeTypes<ChainSpec: Hardforks>>> BuilderContext
secret_key,
default_peers_path,
)
.with_task_executor(Box::new(self.executor.clone()))
.with_task_executor(self.executor.clone())
.set_head(self.head);
Ok(builder)

View File

@@ -231,7 +231,7 @@ impl EngineNodeLauncher {
network_client.clone(),
Box::pin(consensus_engine_stream),
pipeline,
Box::new(ctx.task_executor().clone()),
ctx.task_executor().clone(),
ctx.provider_factory().clone(),
ctx.blockchain_db().clone(),
pruner,

View File

@@ -1016,7 +1016,7 @@ where
.with_provider(node.provider().clone())
.with_pool(node.pool().clone())
.with_network(node.network().clone())
.with_executor(Box::new(node.task_executor().clone()))
.with_executor(node.task_executor().clone())
.with_evm_config(node.evm_config().clone())
.with_consensus(node.consensus().clone())
.build_with_auth_server(module_config, engine_api, eth_api, engine_events.clone());
@@ -1403,7 +1403,7 @@ where
ctx.beacon_engine_handle.clone(),
PayloadStore::new(ctx.node.payload_builder_handle().clone()),
ctx.node.pool().clone(),
Box::new(ctx.node.task_executor().clone()),
ctx.node.task_executor().clone(),
client,
EngineCapabilities::default(),
engine_validator,