mirror of
https://gitlab.com/pulsechaincom/lighthouse-pulse.git
synced 2025-01-08 03:51:22 +00:00
Improve syntax
Co-authored-by: Michael Sproul <micsproul@gmail.com>
This commit is contained in:
parent
667cca5cf2
commit
6f5ca02ac9
@ -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.
|
/// Try to prune blobs older than the data availability boundary.
|
||||||
pub fn try_prune_blobs(&self, force: bool) -> Result<(), Error> {
|
pub fn try_prune_blobs(&self, force: bool) -> Result<(), Error> {
|
||||||
let mut blob_info: BlobInfo;
|
let blob_info = match self.get_blob_info() {
|
||||||
|
|
||||||
match self.get_blob_info() {
|
|
||||||
Some(old_blob_info) => {
|
Some(old_blob_info) => {
|
||||||
blob_info = old_blob_info;
|
old_blob_info
|
||||||
}
|
}
|
||||||
None => {
|
None => {
|
||||||
return Ok(());
|
return Ok(());
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
|
|
||||||
if blob_info.last_pruned_epoch == blob_info.next_epoch_to_prune && !force {
|
if blob_info.last_pruned_epoch == blob_info.next_epoch_to_prune && !force {
|
||||||
info!(self.log, "Blobs sidecars are pruned");
|
info!(self.log, "Blobs sidecars are pruned");
|
||||||
|
Loading…
Reference in New Issue
Block a user