Skip to content

Commit

Permalink
chore(node): feature gate a variable
Browse files Browse the repository at this point in the history
  • Loading branch information
RolandSherwin authored and joshuef committed Jun 12, 2024
1 parent 4273193 commit 5d45529
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sn_node/src/bin/safenode/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@ fn main() -> Result<()> {
#[cfg(feature = "open-metrics")]
let mut node_builder = node_builder;
// if enable flag is provided or only if the port is specified then enable the server by setting Some()
#[cfg(feature = "open-metrics")]
let metrics_server_port = if opt.enable_metrics_server || opt.metrics_server_port != 0 {
Some(opt.metrics_server_port)
} else {
Expand Down

0 comments on commit 5d45529

Please sign in to comment.