Skip to content

Commit

Permalink
Remove old changes
Browse files Browse the repository at this point in the history
  • Loading branch information
IAvecilla committed Mar 15, 2024
1 parent 1d72090 commit b4f6b57
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions node/tools/src/k8s.rs
Original file line number Diff line number Diff line change
Expand Up @@ -215,11 +215,11 @@ pub async fn get_consensus_nodes_address(client: &Client) -> anyhow::Result<Vec<
.context("Failed to get ports of container")?
.iter()
.find_map(|port| {
let port: u8 = port.container_port.try_into().ok()?;
(port != config::NODES_PORT as u8).then_some(port)
let port = port.container_port.try_into().ok()?;
(port != config::NODES_PORT).then_some(port)
})
.context("Failed parsing container port")?;
node_rpc_addresses.push(SocketAddr::new(pod_ip.parse()?, pod_rpc_port as u16));
node_rpc_addresses.push(SocketAddr::new(pod_ip.parse()?, pod_rpc_port));
}
}
Ok(node_rpc_addresses)
Expand Down

0 comments on commit b4f6b57

Please sign in to comment.