accounts default refactoring stragglers (#19097)

This commit is contained in:
Jeff Washington (jwash)
2021-08-06 12:36:42 -05:00
committed by GitHub
parent 397801a2d8
commit 41f4973f0d
3 changed files with 25 additions and 8 deletions

View File

@@ -147,6 +147,23 @@ impl Accounts {
)
}
pub fn new_with_config_for_benches(
paths: Vec<PathBuf>,
cluster_type: &ClusterType,
account_indexes: AccountSecondaryIndexes,
caching_enabled: bool,
shrink_ratio: AccountShrinkThreshold,
) -> Self {
// will diverge
Self::new_with_config(
paths,
cluster_type,
account_indexes,
caching_enabled,
shrink_ratio,
)
}
pub fn new_with_config(
paths: Vec<PathBuf>,
cluster_type: &ClusterType,