mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
style: channel names for consensus engine result (#2388)
This commit is contained in:
@ -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.");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user