Skip to content

Commit

Permalink
fix: out of bounds array error in antctl
Browse files Browse the repository at this point in the history
  • Loading branch information
ermineJose authored and jacderida committed Feb 22, 2025
1 parent 74ea969 commit c75e32e
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions ant-node-manager/src/cmd/node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -476,10 +476,12 @@ pub async fn upgrade(
)
.await?;

debug!(
"listen addresses for nodes[0]: {:?}",
node_registry.nodes[0].listen_addr
);
if let Some(node) = node_registry.nodes.first() {
debug!("listen addresses for nodes[0]: {:?}", node.listen_addr);
} else {
debug!("There are no nodes currently added or active");
}

if !use_force {
let node_versions = node_registry
.nodes
Expand Down

0 comments on commit c75e32e

Please sign in to comment.