Set the correct endpoint
This commit is contained in:
parent
caf40fa1ef
commit
13cd2375d8
1 changed files with 2 additions and 1 deletions
|
@ -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>>()
|
||||
|
|
Loading…
Reference in a new issue