From 8ac1bf0a18fee00022f997e9bf8181e70458b7a6 Mon Sep 17 00:00:00 2001 From: acerone85 Date: Mon, 30 Sep 2024 17:41:00 +0100 Subject: [PATCH] Do not keep join handles around --- bin/fuel-core/src/cli/run.rs | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/bin/fuel-core/src/cli/run.rs b/bin/fuel-core/src/cli/run.rs index 7a5ce6550fa..b272914328e 100644 --- a/bin/fuel-core/src/cli/run.rs +++ b/bin/fuel-core/src/cli/run.rs @@ -521,7 +521,7 @@ pub async fn get_service_with_shutdown_listeners( // TODO: Handle graceful shutdown of migration processes #[cfg(feature = "rocksdb")] - let _migration_dbs_handles: Vec<_> = { + { let on_chain_migration_handle = combined_database .take_on_chain_rocksdb_handle() .map(|rocks_db| tokio::task::spawn_blocking(|| migrate_db(rocks_db))); @@ -537,13 +537,6 @@ pub async fn get_service_with_shutdown_listeners( let gas_price_migration_handle = combined_database .take_gas_price_rocksdb_handle() .map(|rocks_db| tokio::task::spawn_blocking(|| migrate_db(rocks_db))); - - vec![ - on_chain_migration_handle, - off_chain_migration_handle, - relayer_migration_handle, - gas_price_migration_handle, - ] }; Ok((