diff --git a/lighthouse/src/main.rs b/lighthouse/src/main.rs index b037f6d78..495dbc534 100644 --- a/lighthouse/src/main.rs +++ b/lighthouse/src/main.rs @@ -241,5 +241,9 @@ fn run( drop(validator_client); // Shutdown the environment once all tasks have completed. - Ok(environment.shutdown_on_idle()) + // Due to a bug in tokio: https://github.com/tokio-rs/tokio/issues/2314 + // the `shutdown_on_idle()` will wait until the entire timeout. For the time-being, we shutdown as soon as all + // threads have completed, by dropping the runtime. + //Ok(environment.shutdown_on_idle()) + Ok(()) }