Set the correct endpoint

This commit is contained in:
Quentin 2020-05-08 12:46:10 +02:00
parent caf40fa1ef
commit 13cd2375d8
1 changed files with 2 additions and 1 deletions

View File

@ -57,7 +57,8 @@ async fn main() {
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
.unwrap();
//.json::<HashMap<String, String>>()