diff --git a/crates/fuel-core/src/state/rocks_db.rs b/crates/fuel-core/src/state/rocks_db.rs index c5bb6e01fb8..9749e087b94 100644 --- a/crates/fuel-core/src/state/rocks_db.rs +++ b/crates/fuel-core/src/state/rocks_db.rs @@ -729,7 +729,7 @@ where Ok(value.map(Arc::new)) } - fn get_multi<'a>( + fn get_batch<'a>( &'a self, keys: BoxedIter<'a, Vec>, column: Self::Column, diff --git a/crates/storage/src/blueprint.rs b/crates/storage/src/blueprint.rs index aa6a0e57650..eea1de51965 100644 --- a/crates/storage/src/blueprint.rs +++ b/crates/storage/src/blueprint.rs @@ -81,7 +81,7 @@ where } /// Returns multiple values from the storage. - fn get_multi<'a>( + fn get_batch<'a>( storage: &'a S, keys: BoxedIter<'a, &'a M::Key>, column: S::Column, @@ -91,7 +91,7 @@ where .into_boxed(); storage - .get_multi(keys, column) + .get_batch(keys, column) .map(|result| { result.and_then(|opt| { opt.map(|value| { diff --git a/crates/storage/src/kv_store.rs b/crates/storage/src/kv_store.rs index f54586f4377..462935b9611 100644 --- a/crates/storage/src/kv_store.rs +++ b/crates/storage/src/kv_store.rs @@ -67,7 +67,7 @@ pub trait KeyValueInspect: Send + Sync { fn get(&self, key: &[u8], column: Self::Column) -> StorageResult>; /// Returns multiple values from the storage. - fn get_multi<'a>( + fn get_batch<'a>( &'a self, keys: BoxedIter<'a, Vec>, column: Self::Column, diff --git a/crates/storage/src/structured_storage.rs b/crates/storage/src/structured_storage.rs index 9cc97270ca6..5fb3de982b7 100644 --- a/crates/storage/src/structured_storage.rs +++ b/crates/storage/src/structured_storage.rs @@ -280,7 +280,7 @@ where &'a self, keys: BoxedIter<'a, &'a M::Key>, ) -> BoxedIter<'a, StorageResult>> { - M::Blueprint::get_multi(self, keys, M::column()) + M::Blueprint::get_batch(self, keys, M::column()) } }