From 19b4beb72c6371fa5bf76755aa9dea9c554ac72a Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Thu, 9 Feb 2023 19:04:13 +0100 Subject: [PATCH] fix: remove ctrl handling (#1252) --- bin/reth/src/node/mod.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/bin/reth/src/node/mod.rs b/bin/reth/src/node/mod.rs index 4bd923a69..b7307bf8c 100644 --- a/bin/reth/src/node/mod.rs +++ b/bin/reth/src/node/mod.rs @@ -142,10 +142,9 @@ impl Command { // Run pipeline info!(target: "reth::cli", "Starting sync pipeline"); - tokio::select! { - res = pipeline.run(db.clone()) => res?, - _ = tokio::signal::ctrl_c() => {}, - }; + pipeline.run(db.clone()).await?; + + // TODO: this is where we'd handle graceful shutdown by listening to ctrl-c if !self.network.no_persist_peers { dump_peers(self.network.peers_file.as_ref(), network).await?;