From 5cbd6b3a742097f76410f992b8df6e768dd9ee0d Mon Sep 17 00:00:00 2001 From: "Jeff Washington (jwash)" Date: Wed, 8 Feb 2023 10:00:14 -0600 Subject: [PATCH] minor cleanup (#30181) --- runtime/src/ancient_append_vecs.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/runtime/src/ancient_append_vecs.rs b/runtime/src/ancient_append_vecs.rs index 74d86dc4e0..7faf76a4ad 100644 --- a/runtime/src/ancient_append_vecs.rs +++ b/runtime/src/ancient_append_vecs.rs @@ -206,9 +206,9 @@ impl AncientSlotInfos { impl AccountsDb { /// calculate all storage info for the storages in slots - /// prune the ones to ignore given tuning parameters + /// Then, apply 'tuning' to filter out slots we do NOT want to combine. #[allow(dead_code)] - fn collect_sort_filter_info( + fn collect_sort_filter_ancient_slots( &self, slots: Vec, tuning: PackedAncientStorageTuning, @@ -607,7 +607,7 @@ pub mod tests { ideal_storage_size: NonZeroU64::new(1).unwrap(), can_randomly_shrink, }; - infos = db.collect_sort_filter_info(vec![slot1], tuning); + infos = db.collect_sort_filter_ancient_slots(vec![slot1], tuning); } } assert_eq!(infos.all_infos.len(), 1); @@ -764,7 +764,7 @@ pub mod tests { ideal_storage_size: NonZeroU64::new(1).unwrap(), can_randomly_shrink, }; - db.collect_sort_filter_info(slot_vec.clone(), tuning) + db.collect_sort_filter_ancient_slots(slot_vec.clone(), tuning) } }; assert_eq!(infos.all_infos.len(), 1, "method: {method:?}"); @@ -1056,7 +1056,7 @@ pub mod tests { can_randomly_shrink, }; // note this can sort infos.all_infos - db.collect_sort_filter_info(slot_vec.clone(), tuning) + db.collect_sort_filter_ancient_slots(slot_vec.clone(), tuning) } };