From bb65a7af95d52679237f6dd11187de90449f0e2b Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Thu, 16 Feb 2023 22:52:41 +0100 Subject: [PATCH] fix: actually exit (#1421) --- bin/reth/src/runner.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bin/reth/src/runner.rs b/bin/reth/src/runner.rs index 3f6bba042d..84afc3847f 100644 --- a/bin/reth/src/runner.rs +++ b/bin/reth/src/runner.rs @@ -40,10 +40,9 @@ impl CliRunner { // give all tasks that are now being shut down some time to finish before tokio leaks them // see [Runtime::shutdown_timeout](tokio::runtime::Runtime::shutdown_timeout) // TODO: enable this again, when pipeline/stages are not longer blocking tasks + std::process::exit(0); // warn!(target: "reth::cli", "Received shutdown signal, waiting up to 30 seconds for // tasks."); tokio_runtime.shutdown_timeout(Duration::from_secs(30)); - - Ok(()) } /// Executes a regular future until completion or until external signal received.