perf: spawn eth orchestrator as regular task (#10113)

This commit is contained in:
Matthias Seitz
2024-08-06 01:16:31 +02:00
committed by GitHub
parent 6008deb360
commit 443f7d56ac

View File

@ -256,7 +256,7 @@ where
let chainspec = ctx.chain_spec();
let (exit, rx) = oneshot::channel();
info!(target: "reth::cli", "Starting consensus engine");
ctx.task_executor().spawn_critical_blocking("consensus engine", async move {
ctx.task_executor().spawn_critical("consensus engine", async move {
if let Some(initial_target) = initial_target {
debug!(target: "reth::cli", %initial_target, "start backfill sync");
eth_service.orchestrator_mut().start_backfill_sync(initial_target);