style: channel names for consensus engine result (#2388)

This commit is contained in:
Roman Krasiuk
2023-04-25 13:58:14 +03:00
committed by GitHub
parent eebcb03fea
commit 3834dfdea8

View File

@ -335,14 +335,14 @@ impl Command {
.await?;
// Run consensus engine to completion
let (rx, tx) = oneshot::channel();
let (tx, rx) = oneshot::channel();
info!(target: "reth::cli", "Starting consensus engine");
ctx.task_executor.spawn_critical("consensus engine", async move {
let res = beacon_consensus_engine.await;
let _ = rx.send(res);
let _ = tx.send(res);
});
tx.await??;
rx.await??;
info!(target: "reth::cli", "Consensus engine has exited.");