remove caching_enabled from Bank::new_with_paths_for_tests (#29214)

This commit is contained in:
Jeff Washington (jwash) 2022-12-12 17:30:46 -06:00 committed by GitHub
parent 1b0aaf1607
commit 2c2324f4ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 1 additions and 7 deletions

View File

@ -102,7 +102,6 @@ impl SnapshotTestConfig {
Arc::<RuntimeConfig>::default(),
vec![accounts_dir.path().to_path_buf()],
AccountSecondaryIndexes::default(),
true,
accounts_db::AccountShrinkThreshold::default(),
);
bank0.freeze();

View File

@ -3714,7 +3714,6 @@ pub mod tests {
Arc::<RuntimeConfig>::default(),
account_paths,
AccountSecondaryIndexes::default(),
false,
AccountShrinkThreshold::default(),
);
*bank.epoch_schedule()

View File

@ -1233,7 +1233,6 @@ impl Bank {
runtime_config,
Vec::new(),
AccountSecondaryIndexes::default(),
false,
AccountShrinkThreshold::default(),
)
}
@ -1248,7 +1247,7 @@ impl Bank {
pub(crate) fn new_with_config_for_tests(
genesis_config: &GenesisConfig,
account_indexes: AccountSecondaryIndexes,
accounts_db_caching_enabled: bool,
_accounts_db_caching_enabled: bool,
shrink_ratio: AccountShrinkThreshold,
) -> Self {
Self::new_with_paths_for_tests(
@ -1256,7 +1255,6 @@ impl Bank {
Arc::<RuntimeConfig>::default(),
Vec::new(),
account_indexes,
accounts_db_caching_enabled,
shrink_ratio,
)
}
@ -1335,7 +1333,6 @@ impl Bank {
runtime_config: Arc<RuntimeConfig>,
paths: Vec<PathBuf>,
account_indexes: AccountSecondaryIndexes,
_accounts_db_caching_enabled: bool,
shrink_ratio: AccountShrinkThreshold,
) -> Self {
Self::new_with_paths(

View File

@ -3682,7 +3682,6 @@ mod tests {
Arc::<RuntimeConfig>::default(),
vec![accounts_dir.path().to_path_buf()],
AccountSecondaryIndexes::default(),
false,
AccountShrinkThreshold::default(),
));
bank0