Skip to content

Commit

Permalink
fix: unrelated metrics feature flag hiccup
Browse files Browse the repository at this point in the history
  • Loading branch information
Frando committed Jul 31, 2024
1 parent 967b8a3 commit bac96ee
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions iroh/src/metrics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ pub fn try_init_metrics_collection() -> std::io::Result<()> {
metrics.insert(iroh_net::metrics::MagicsockMetrics::new(reg));
metrics.insert(iroh_net::metrics::NetcheckMetrics::new(reg));
metrics.insert(iroh_net::metrics::PortmapMetrics::new(reg));
metrics.insert(iroh_net::metrics::RelayMetrics::new(reg));
})
}

Expand All @@ -101,10 +100,6 @@ pub fn get_metrics() -> anyhow::Result<BTreeMap<String, CounterStats>> {
core.get_collector::<iroh_net::metrics::PortmapMetrics>(),
&mut map,
);
collect(
core.get_collector::<iroh_net::metrics::RelayMetrics>(),
&mut map,
);
Ok(map)
}

Expand Down

0 comments on commit bac96ee

Please sign in to comment.