remove caching_enabled from Bank::new_with_paths_for_tests (#29214)
This commit is contained in:
parent
1b0aaf1607
commit
2c2324f4ea
|
@ -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();
|
||||
|
|
|
@ -3714,7 +3714,6 @@ pub mod tests {
|
|||
Arc::<RuntimeConfig>::default(),
|
||||
account_paths,
|
||||
AccountSecondaryIndexes::default(),
|
||||
false,
|
||||
AccountShrinkThreshold::default(),
|
||||
);
|
||||
*bank.epoch_schedule()
|
||||
|
|
|
@ -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(
|
||||
|
|
|
@ -3682,7 +3682,6 @@ mod tests {
|
|||
Arc::<RuntimeConfig>::default(),
|
||||
vec![accounts_dir.path().to_path_buf()],
|
||||
AccountSecondaryIndexes::default(),
|
||||
false,
|
||||
AccountShrinkThreshold::default(),
|
||||
));
|
||||
bank0
|
||||
|
|
Loading…
Reference in New Issue