Skip to content

Commit

Permalink
consistency is the key
Browse files Browse the repository at this point in the history
  • Loading branch information
bragov4ik committed Dec 17, 2024
1 parent 3100888 commit cff2137
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions stats/stats/src/charts/counters/total_operational_txns.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,7 @@ impl MapFunction<Input> for Calculate {
let date = total_blocks_data.timespan;
let value = total_txns_data
.value
.checked_sub(total_blocks_data.value)
.ok_or(ChartError::Internal(format!(
"overflow calculating {}",
Properties::name()
)))?;
.saturating_sub(total_blocks_data.value);
Ok(TimespanValue {
timespan: date,
value: value.to_string(),
Expand Down

0 comments on commit cff2137

Please sign in to comment.