From 8e85f2f3e0e02076a8026b79bfec348b6eac2bf0 Mon Sep 17 00:00:00 2001 From: Aaryamann Challani <43716372+rymnc@users.noreply.github.com> Date: Thu, 23 Jan 2025 16:01:35 +0530 Subject: [PATCH] fix(rocksdb): import when rocksdb is enabled within local_node_with_reader fn --- crates/fuel-core/src/service/config.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/crates/fuel-core/src/service/config.rs b/crates/fuel-core/src/service/config.rs index 3e8baed7d98..2623faae779 100644 --- a/crates/fuel-core/src/service/config.rs +++ b/crates/fuel-core/src/service/config.rs @@ -121,7 +121,6 @@ impl Config { #[cfg(feature = "test-helpers")] pub fn local_node_with_reader(snapshot_reader: SnapshotReader) -> Self { - use crate::state::rocks_db::DatabaseConfig; let block_importer = fuel_core_importer::Config::new(false); let latest_block = snapshot_reader.last_block_config(); // In tests, we always want to use the native executor as a default configuration. @@ -135,7 +134,7 @@ impl Config { let combined_db_config = CombinedDatabaseConfig { #[cfg(feature = "rocksdb")] - database_config: DatabaseConfig::config_for_tests(), + database_config: crate::state::rocks_db::DatabaseConfig::config_for_tests(), database_path: Default::default(), #[cfg(feature = "rocksdb")] database_type: DbType::RocksDb,