aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index ff98f46..09e9ecd 100644
--- a/src/main.rs
+++ b/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>>()