Rename open_with_access_type() to open_with_options() (#22123)

This commit is contained in:
Yueh-Hsuan Chiang
2022-01-07 12:11:43 -08:00
committed by GitHub
parent b11d3b5abf
commit 5771c36d3f
6 changed files with 10 additions and 11 deletions

View File

@ -70,7 +70,7 @@ pub fn remove_tower(tower_path: &Path, node_pubkey: &Pubkey) {
}
pub fn open_blockstore(ledger_path: &Path) -> Blockstore {
Blockstore::open_with_access_type(
Blockstore::open_with_options(
ledger_path,
BlockstoreOptions {
access_type: AccessType::TryPrimaryThenSecondary,

View File

@ -325,7 +325,7 @@ fn do_test_optimistic_confirmation_violation_with_or_without_tower(with_tower: b
if let Some((last_vote, _)) = last_vote_in_tower(&val_a_ledger_path, &validator_a_pubkey) {
a_votes.push(last_vote);
let blockstore = Blockstore::open_with_access_type(
let blockstore = Blockstore::open_with_options(
&val_a_ledger_path,
BlockstoreOptions {
access_type: AccessType::TryPrimaryThenSecondary,