Skip to content

Commit

Permalink
Do not keep join handles around
Browse files Browse the repository at this point in the history
  • Loading branch information
acerone85 committed Oct 2, 2024
1 parent 9b0bd73 commit 8ac1bf0
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions bin/fuel-core/src/cli/run.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)));
Expand All @@ -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((
Expand Down

0 comments on commit 8ac1bf0

Please sign in to comment.