From b14fcf5a125b39829c87f20b1a7cbecf54545120 Mon Sep 17 00:00:00 2001 From: Andrew Fitzgerald Date: Thu, 23 Mar 2023 13:37:57 -0700 Subject: [PATCH] rename process_entries_with_callback to process_entries (#30870) --- ledger/src/blockstore_processor.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/ledger/src/blockstore_processor.rs b/ledger/src/blockstore_processor.rs index 74a872e594..e5be66cedc 100644 --- a/ledger/src/blockstore_processor.rs +++ b/ledger/src/blockstore_processor.rs @@ -429,7 +429,7 @@ pub fn process_entries_for_tests( .collect(); let _ignored_prioritization_fee_cache = PrioritizationFeeCache::new(0u64); - let result = process_entries_with_callback( + let result = process_entries( bank, &mut replay_entries, randomize, @@ -445,8 +445,7 @@ pub fn process_entries_for_tests( } // Note: If randomize is true this will shuffle entries' transactions in-place. -#[allow(clippy::too_many_arguments)] -fn process_entries_with_callback( +fn process_entries( bank: &Arc, entries: &mut [ReplayEntry], randomize: bool, @@ -1194,7 +1193,7 @@ fn confirm_slot_entries( }) .collect(); // Note: This will shuffle entries' transactions in-place. - let process_result = process_entries_with_callback( + let process_result = process_entries( bank, &mut replay_entries, true, // shuffle transactions.