minor cleanup (#30181)

This commit is contained in:
Jeff Washington (jwash) 2023-02-08 10:00:14 -06:00 committed by GitHub
parent 70d635127e
commit 5cbd6b3a74
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 5 deletions

View File

@ -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<Slot>,
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)
}
};