Skip to content

Commit

Permalink
Rename param
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex6323 committed May 9, 2022
1 parent 9f6590e commit 680540c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bee-ledger/src/workers/pruning/condition.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ pub(crate) fn should_prune<S: StorageBackend>(
storage
.size()
.map_err(|_| PruningSkipReason::SizeMetricUnsupported)
.and_then(|a| {
let actual_size = a.ok_or(PruningSkipReason::SizeMetricUnavailable)?;
.and_then(|actual_size| {
let actual_size = actual_size.ok_or(PruningSkipReason::SizeMetricUnavailable)?;
let threshold_size = pruning_config.db_size().target_size();

log::debug!("Storage size: actual {actual_size} threshold {threshold_size}");
Expand Down

0 comments on commit 680540c

Please sign in to comment.