Fix overflow (#5184)

This commit is contained in:
dynco-nym
2024-11-27 17:07:01 +01:00
committed by GitHub
parent e7f806219c
commit 96ebe3fc4f
3 changed files with 4 additions and 3 deletions
Generated
+1 -1
View File
@@ -6061,7 +6061,7 @@ dependencies = [
[[package]]
name = "nym-node-status-api"
version = "1.0.0-rc.2"
version = "1.0.0-rc.3"
dependencies = [
"anyhow",
"axum 0.7.7",
@@ -3,7 +3,7 @@
[package]
name = "nym-node-status-api"
version = "1.0.0-rc.2"
version = "1.0.0-rc.3"
authors.workspace = true
repository.workspace = true
homepage.workspace = true
@@ -219,7 +219,8 @@ async fn run(
let recently_unbonded_mixnodes = queries::ensure_mixnodes_still_bonded(pool, &mixnodes).await?;
let count_bonded_mixnodes_reserve = 0; // TODO: NymAPI doesn't report the reserve set size
let count_bonded_mixnodes_inactive = count_bonded_mixnodes - count_bonded_mixnodes_active;
let count_bonded_mixnodes_inactive =
count_bonded_mixnodes.saturating_sub(count_bonded_mixnodes_active);
let (all_historical_gateways, all_historical_mixnodes) = calculate_stats(pool).await?;