From 3834dfdea82e829e0b1b91b12bc1744df405fe18 Mon Sep 17 00:00:00 2001 From: Roman Krasiuk Date: Tue, 25 Apr 2023 13:58:14 +0300 Subject: [PATCH] style: channel names for consensus engine result (#2388) --- bin/reth/src/node/mod.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/reth/src/node/mod.rs b/bin/reth/src/node/mod.rs index 656eb8f8b1..9fa7638b85 100644 --- a/bin/reth/src/node/mod.rs +++ b/bin/reth/src/node/mod.rs @@ -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.");