Skip to content

Commit

Permalink
piecrust: renamed do_find_page to find_page
Browse files Browse the repository at this point in the history
  • Loading branch information
miloszm committed Sep 27, 2024
1 parent a784db7 commit d427fc5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion piecrust/src/store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ fn commit_from_dir<P: AsRef<Path>>(
for page_index in &contract_index.page_indices {
let main_page_path = page_path(&contract_memory_dir, *page_index);
if !main_page_path.is_file() {
let path = ContractSession::do_find_page(
let path = ContractSession::find_page(
*page_index,
maybe_hash,
contract_memory_dir.clone(),
Expand Down
6 changes: 3 additions & 3 deletions piecrust/src/store/session.rs
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ impl ContractSession {
///
/// Requires a contract's memory path and a main state path.
/// Progresses recursively via bases of commits.
pub fn do_find_page(
pub fn find_page(
page_index: usize,
commit: Option<Hash>,
memory_path: impl AsRef<Path>,
Expand All @@ -182,7 +182,7 @@ impl ContractSession {
let index_path =
main_path.as_ref().join(hash_hex).join(INDEX_FILE);
let index = index_from_path(index_path).ok()?;
Self::do_find_page(
Self::find_page(
page_index,
index.maybe_base,
memory_path.as_ref(),
Expand Down Expand Up @@ -246,7 +246,7 @@ impl ContractSession {
.contains(&page_index)
{
true => Some(
Self::do_find_page(
Self::find_page(
page_index,
commit_id,
memory_path.clone(),
Expand Down

0 comments on commit d427fc5

Please sign in to comment.