Improve syntax

Co-authored-by: Michael Sproul <micsproul@gmail.com>
This commit is contained in:
Emilia Hane 2023-01-13 21:18:14 +01:00 committed by Emilia Hane
parent 667cca5cf2
commit 6f5ca02ac9
No known key found for this signature in database
GPG Key ID: E73394F9C09206FA

View File

@ -1693,16 +1693,14 @@ impl<E: EthSpec, Hot: ItemStore<E>, Cold: ItemStore<E>> HotColdDB<E, Hot, Cold>
/// Try to prune blobs older than the data availability boundary.
pub fn try_prune_blobs(&self, force: bool) -> Result<(), Error> {
let mut blob_info: BlobInfo;
match self.get_blob_info() {
let blob_info = match self.get_blob_info() {
Some(old_blob_info) => {
blob_info = old_blob_info;
old_blob_info
}
None => {
return Ok(());
}
}
};
if blob_info.last_pruned_epoch == blob_info.next_epoch_to_prune && !force {
info!(self.log, "Blobs sidecars are pruned");