diff --git a/piecrust/src/store.rs b/piecrust/src/store.rs index f6e31cce..295dffd6 100644 --- a/piecrust/src/store.rs +++ b/piecrust/src/store.rs @@ -315,7 +315,7 @@ fn commit_from_dir>( 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(), diff --git a/piecrust/src/store/session.rs b/piecrust/src/store/session.rs index 09af67bb..bde49f44 100644 --- a/piecrust/src/store/session.rs +++ b/piecrust/src/store/session.rs @@ -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, memory_path: impl AsRef, @@ -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(), @@ -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(),