Skip to content

Commit a3f86df

Browse files
author
LorenzoTettamanti
committed
update agent api ip address to fit the latest service type changes (changed from nodeport to clusterIP)
1 parent 77ad8db commit a3f86df

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

core/api/src/client.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ use tonic_reflection::pb::v1::{
66
};
77
use crate::agent::agent_client::AgentClient;
88

9-
9+
const AGENT_IP : &str = "http://127.0.0.1:9090";
1010

1111
pub async fn connect_to_client() -> Result<AgentClient<Channel>, Error> {
1212
//this methods force a HTTP/2 connection from a static string
1313
//FIXME: this will require an update to ensure a protected connection
14-
let channel = Channel::from_static("http://192.168.49.2:30092")
14+
let channel = Channel::from_static(AGENT_IP)
1515
.connect()
1616
.await?;
1717
let client = AgentClient::new(channel);
@@ -20,7 +20,7 @@ pub async fn connect_to_client() -> Result<AgentClient<Channel>, Error> {
2020

2121
pub async fn connect_to_server_reflection() -> Result<ServerReflectionClient<Channel>, Error> {
2222
//this methods force a HTTP/2 connection from a static string
23-
let channel = Channel::from_static("http://192.168.49.2:30092")
23+
let channel = Channel::from_static(AGENT_IP)
2424
.connect()
2525
.await?;
2626
let client = ServerReflectionClient::new(channel);

0 commit comments

Comments
 (0)