Skip to content

Commit

Permalink
refactor: Rename multi_get -> get_batch
Browse files Browse the repository at this point in the history
  • Loading branch information
netrome committed Oct 29, 2024
1 parent 1428f41 commit 8fbc9d2
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion crates/fuel-core/src/state/rocks_db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -729,7 +729,7 @@ where
Ok(value.map(Arc::new))
}

fn get_multi<'a>(
fn get_batch<'a>(
&'a self,
keys: BoxedIter<'a, Vec<u8>>,
column: Self::Column,
Expand Down
4 changes: 2 additions & 2 deletions crates/storage/src/blueprint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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| {
Expand Down
2 changes: 1 addition & 1 deletion crates/storage/src/kv_store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ pub trait KeyValueInspect: Send + Sync {
fn get(&self, key: &[u8], column: Self::Column) -> StorageResult<Option<Value>>;

/// Returns multiple values from the storage.
fn get_multi<'a>(
fn get_batch<'a>(
&'a self,
keys: BoxedIter<'a, Vec<u8>>,
column: Self::Column,
Expand Down
2 changes: 1 addition & 1 deletion crates/storage/src/structured_storage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ where
&'a self,
keys: BoxedIter<'a, &'a M::Key>,
) -> BoxedIter<'a, StorageResult<Option<M::OwnedValue>>> {
M::Blueprint::get_multi(self, keys, M::column())
M::Blueprint::get_batch(self, keys, M::column())
}
}

Expand Down

0 comments on commit 8fbc9d2

Please sign in to comment.