rename process_entries_with_callback to process_entries (#30870)

This commit is contained in:
Andrew Fitzgerald 2023-03-23 13:37:57 -07:00 committed by GitHub
parent db1e721f48
commit b14fcf5a12
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 4 deletions

View File

@ -429,7 +429,7 @@ pub fn process_entries_for_tests(
.collect(); .collect();
let _ignored_prioritization_fee_cache = PrioritizationFeeCache::new(0u64); let _ignored_prioritization_fee_cache = PrioritizationFeeCache::new(0u64);
let result = process_entries_with_callback( let result = process_entries(
bank, bank,
&mut replay_entries, &mut replay_entries,
randomize, randomize,
@ -445,8 +445,7 @@ pub fn process_entries_for_tests(
} }
// Note: If randomize is true this will shuffle entries' transactions in-place. // Note: If randomize is true this will shuffle entries' transactions in-place.
#[allow(clippy::too_many_arguments)] fn process_entries(
fn process_entries_with_callback(
bank: &Arc<Bank>, bank: &Arc<Bank>,
entries: &mut [ReplayEntry], entries: &mut [ReplayEntry],
randomize: bool, randomize: bool,
@ -1194,7 +1193,7 @@ fn confirm_slot_entries(
}) })
.collect(); .collect();
// Note: This will shuffle entries' transactions in-place. // Note: This will shuffle entries' transactions in-place.
let process_result = process_entries_with_callback( let process_result = process_entries(
bank, bank,
&mut replay_entries, &mut replay_entries,
true, // shuffle transactions. true, // shuffle transactions.