From 13cd2375d84e656fd6531c86175f9a87259f7070 Mon Sep 17 00:00:00 2001 From: Quentin Dufour Date: Fri, 8 May 2020 12:46:10 +0200 Subject: Set the correct endpoint --- src/main.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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::>() -- cgit v1.2.3