File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6,12 +6,12 @@ use tonic_reflection::pb::v1::{
66} ;
77use crate :: agent:: agent_client:: AgentClient ;
88
9-
9+ const AGENT_IP : & str = "http://127.0.0.1:9090" ;
1010
1111pub 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
2121pub 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) ;
You can’t perform that action at this time.
0 commit comments