remove AccountsBackgroundService::new(caching_enabled) (#29234)

This commit is contained in:
Jeff Washington (jwash) 2022-12-13 09:18:02 -06:00 committed by GitHub
parent 3b4c27b727
commit b95835143e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 3 additions and 12 deletions

View File

@ -635,7 +635,6 @@ impl Validator {
snapshot_request_handler,
pruned_banks_request_handler,
},
true, // caching_enabled
config.accounts_db_test_hash_calculation,
last_full_snapshot_slot,
);

View File

@ -221,7 +221,6 @@ impl BackgroundServices {
snapshot_request_handler,
pruned_banks_request_handler,
},
true,
false,
None,
);

View File

@ -1040,14 +1040,8 @@ fn test_snapshots_with_background_services(
snapshot_test_config.snapshot_config.clone(),
);
let accounts_background_service = AccountsBackgroundService::new(
bank_forks.clone(),
&exit,
abs_request_handler,
true,
false,
None,
);
let accounts_background_service =
AccountsBackgroundService::new(bank_forks.clone(), &exit, abs_request_handler, false, None);
let mut last_full_snapshot_slot = None;
let mut last_incremental_snapshot_slot = None;

View File

@ -1156,7 +1156,6 @@ fn load_bank_forks(
bank_forks.clone(),
&exit,
abs_request_handler,
true,
process_options.accounts_db_test_hash_calculation,
None,
);

View File

@ -539,10 +539,10 @@ impl AccountsBackgroundService {
bank_forks: Arc<RwLock<BankForks>>,
exit: &Arc<AtomicBool>,
request_handlers: AbsRequestHandlers,
accounts_db_caching_enabled: bool,
test_hash_calculation: bool,
mut last_full_snapshot_slot: Option<Slot>,
) -> Self {
let accounts_db_caching_enabled = true;
info!("AccountsBackgroundService active");
let exit = exit.clone();
let mut consumed_budget = 0;