diff --git a/src/bin/fipstop/ui/tree.rs b/src/bin/fipstop/ui/tree.rs index 2d221f2..c8119c9 100644 --- a/src/bin/fipstop/ui/tree.rs +++ b/src/bin/fipstop/ui/tree.rs @@ -174,10 +174,6 @@ fn draw_stats(frame: &mut Frame, data: &serde_json::Value, scroll: u16, focused: &helpers::nested_u64(data, "stats", "sig_failed"), ), helpers::kv_line("Stale", &helpers::nested_u64(data, "stats", "stale")), - helpers::kv_line( - "Parent Switched", - &helpers::nested_u64(data, "stats", "parent_switched"), - ), helpers::kv_line( "Loop Detected", &helpers::nested_u64(data, "stats", "loop_detected"), diff --git a/src/control/snapshots/show_tree.json b/src/control/snapshots/show_tree.json index 148ab46..675d85a 100644 --- a/src/control/snapshots/show_tree.json +++ b/src/control/snapshots/show_tree.json @@ -24,7 +24,6 @@ "loop_detected": 0, "outbound_sign_failed": 0, "parent_losses": 0, - "parent_switched": 0, "parent_switches": 0, "rate_limited": 0, "received": 0, diff --git a/src/node/handlers/mmp.rs b/src/node/handlers/mmp.rs index 74b89f2..167c687 100644 --- a/src/node/handlers/mmp.rs +++ b/src/node/handlers/mmp.rs @@ -173,7 +173,6 @@ impl Node { self.coord_cache .invalidate_via_node(our_identity.node_addr()); self.reset_discovery_backoff(); - self.metrics().tree.parent_switched.inc(); self.metrics().tree.parent_switches.inc(); info!( new_parent = %self.peer_display_name(&new_parent), @@ -205,7 +204,6 @@ impl Node { self.coord_cache .invalidate_other_roots(our_identity.node_addr()); self.reset_discovery_backoff(); - self.metrics().tree.parent_switched.inc(); self.metrics().tree.parent_switches.inc(); info!( new_root = %self.tree_state.root(), diff --git a/src/node/metrics.rs b/src/node/metrics.rs index 84f5ffc..948cb83 100644 --- a/src/node/metrics.rs +++ b/src/node/metrics.rs @@ -317,7 +317,6 @@ pub struct TreeMetrics { pub stale: Counter, pub ancestry_invalid: Counter, pub accepted: Counter, - pub parent_switched: Counter, pub loop_detected: Counter, pub ancestry_changed: Counter, pub sent: Counter, @@ -351,7 +350,6 @@ impl TreeMetrics { stale: self.stale.get(), ancestry_invalid: self.ancestry_invalid.get(), accepted: self.accepted.get(), - parent_switched: self.parent_switched.get(), loop_detected: self.loop_detected.get(), ancestry_changed: self.ancestry_changed.get(), sent: self.sent.get(), diff --git a/src/node/stats.rs b/src/node/stats.rs index 2315ad9..5edfe5d 100644 --- a/src/node/stats.rs +++ b/src/node/stats.rs @@ -273,7 +273,6 @@ pub struct TreeStatsSnapshot { pub stale: u64, pub ancestry_invalid: u64, pub accepted: u64, - pub parent_switched: u64, pub loop_detected: u64, pub ancestry_changed: u64, pub sent: u64, diff --git a/src/node/tree.rs b/src/node/tree.rs index f95dfc4..c99231e 100644 --- a/src/node/tree.rs +++ b/src/node/tree.rs @@ -300,7 +300,6 @@ impl Node { .invalidate_via_node(our_identity.node_addr()); self.reset_discovery_backoff(); - self.metrics().tree.parent_switched.inc(); self.metrics().tree.parent_switches.inc(); info!( @@ -338,7 +337,6 @@ impl Node { self.coord_cache .invalidate_other_roots(our_identity.node_addr()); self.reset_discovery_backoff(); - self.metrics().tree.parent_switched.inc(); self.metrics().tree.parent_switches.inc(); info!( new_root = %self.tree_state.root(), @@ -524,7 +522,6 @@ impl Node { .invalidate_via_node(our_identity.node_addr()); self.reset_discovery_backoff(); - self.metrics().tree.parent_switched.inc(); self.metrics().tree.parent_switches.inc(); info!( @@ -560,7 +557,6 @@ impl Node { self.coord_cache .invalidate_other_roots(our_identity.node_addr()); self.reset_discovery_backoff(); - self.metrics().tree.parent_switched.inc(); self.metrics().tree.parent_switches.inc(); info!( new_root = %self.tree_state.root(),