Skip to content

Commit

Permalink
perf: spawn engine as blocking (#3257)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsse authored Jun 19, 2023
1 parent 729d4ad commit 07b499f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/reth/src/node/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ impl Command {
// Run consensus engine to completion
let (tx, rx) = oneshot::channel();
info!(target: "reth::cli", "Starting consensus engine");
ctx.task_executor.spawn_critical("consensus engine", async move {
ctx.task_executor.spawn_critical_blocking("consensus engine", async move {
let res = beacon_consensus_engine.await;
let _ = tx.send(res);
});
Expand Down

0 comments on commit 07b499f

Please sign in to comment.