Skip to content

Commit

Permalink
fix(manager): use the correct metrics port argument name
Browse files Browse the repository at this point in the history
  • Loading branch information
RolandSherwin authored and joshuef committed Jun 10, 2024
1 parent d67da92 commit 994c66e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions sn_node_manager/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2880,7 +2880,7 @@ mod tests {
OsString::from("/var/safenode-manager/services/safenode1"),
OsString::from("--log-output-dest"),
OsString::from("/var/log/safenode/safenode1"),
OsString::from("--metrics-port"),
OsString::from("--metrics-server-port"),
OsString::from("12000"),
],
autostart: false,
Expand Down Expand Up @@ -3034,7 +3034,7 @@ mod tests {
OsString::from("/var/safenode-manager/services/safenode1"),
OsString::from("--log-output-dest"),
OsString::from("/var/log/safenode/safenode1"),
OsString::from("--metrics-port"),
OsString::from("--metrics-server-port"),
OsString::from("12000"),
],
autostart: false,
Expand Down
2 changes: 1 addition & 1 deletion sn_service_management/src/node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ impl<'a> ServiceStateActions for NodeService<'a> {
args.push(OsString::from(node_port.to_string()));
}
if let Some(metrics_port) = self.service_data.metrics_port {
args.push(OsString::from("--metrics-port"));
args.push(OsString::from("--metrics-server-port"));
args.push(OsString::from(metrics_port.to_string()));
}

Expand Down

0 comments on commit 994c66e

Please sign in to comment.