Skip to content

Commit

Permalink
attempt to remove iroh-relay feature flag usage
Browse files Browse the repository at this point in the history
  • Loading branch information
divagant-martian committed Nov 11, 2024
1 parent 28c7a0d commit b82ccb9
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 5 deletions.
1 change: 0 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion iroh-net/bench/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ tracing = "0.1"
tracing-subscriber = { version = "0.3.0", default-features = false, features = ["env-filter", "fmt", "ansi", "time", "local-time"] }
socket2 = "0.5"
futures-lite = "2.3.0"
iroh-relay = { path = "../../iroh-relay", features = ["metrics"] }

[features]
default = ["local-relay"]
Expand Down
2 changes: 1 addition & 1 deletion iroh-net/bench/src/bin/bulk.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ pub fn run_iroh(opt: Opt) -> Result<()> {
metrics.insert(iroh_net::metrics::PortmapMetrics::new(reg));
#[cfg(feature = "local-relay")]
if opt.with_relay {
metrics.insert(iroh_relay::server::Metrics::new(reg));
metrics.insert(iroh_net::metrics::RelayMetrics::new(reg));
}
})?;
}
Expand Down
4 changes: 2 additions & 2 deletions iroh-net/src/metrics.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//! Co-locating all of the iroh-net metrics structs
#[cfg(feature = "iroh-relay")]
#[cfg_attr(iroh_docsrs, doc(cfg(feature = "iroh-relay")))]
#[cfg(feature = "test-utils")]
#[cfg_attr(iroh_docsrs, doc(cfg(feature = "test-utils")))]
pub use iroh_relay::server::Metrics as RelayMetrics;
pub use portmapper::Metrics as PortmapMetrics;

Expand Down

0 comments on commit b82ccb9

Please sign in to comment.