Set the correct endpoint

This commit is contained in:
Quentin 2020-05-08 12:46:10 +02:00
parent caf40fa1ef
commit 13cd2375d8

View file

@ -57,7 +57,8 @@ async fn main() {
Err(e) => return println!("unable to build configuration: {}", e), Err(e) => return println!("unable to build configuration: {}", e),
}; };
let resp = reqwest::get("http://127.0.0.1:8500") let url = format!("http://127.0.0.1:8500/v1/catalog/node/{}", config.consul_node_name);
let resp = reqwest::get(&url)
.await .await
.unwrap(); .unwrap();
//.json::<HashMap<String, String>>() //.json::<HashMap<String, String>>()