Skip to content

Commit

Permalink
No-op rename: remove metered from metered_scan_slice_of_slices as…
Browse files Browse the repository at this point in the history
… there is no metering.

This doesn't seem to need to be metered.
  • Loading branch information
dmkozh committed Sep 13, 2023
1 parent 66a3c50 commit 3be5bed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion soroban-env-host/src/host.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1201,7 +1201,7 @@ impl EnvBase for Host {

fn symbol_index_in_strs(&self, sym: Symbol, slices: &[&str]) -> Result<U32Val, Self::Error> {
let mut found = None;
self.metered_scan_slice_of_slices(slices, |i, slice| {
self.scan_slice_of_slices(slices, |i, slice| {
if self.symbol_matches(slice.as_bytes(), sym)? && found.is_none() {
found = Some(i)
}
Expand Down
2 changes: 1 addition & 1 deletion soroban-env-host/src/host/mem_helper.rs
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ impl Host {
Ok(())
}

pub(crate) fn metered_scan_slice_of_slices(
pub(crate) fn scan_slice_of_slices(
&self,
slices: &[&str],
mut callback: impl FnMut(usize, &str) -> Result<(), HostError>,
Expand Down

0 comments on commit 3be5bed

Please sign in to comment.