Browse Source

Set the correct endpoint

main
Quentin 1 year ago
parent
commit
13cd2375d8
  1. 3
      src/main.rs

3
src/main.rs

@ -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…
Cancel
Save