diff options
author | Quentin Dufour <quentin@deuxfleurs.fr> | 2020-05-08 12:46:10 +0200 |
---|---|---|
committer | Quentin Dufour <quentin@deuxfleurs.fr> | 2020-05-08 12:46:10 +0200 |
commit | 13cd2375d84e656fd6531c86175f9a87259f7070 (patch) | |
tree | 52b20dd84320cb8a16076763e395a4fbc0f46ff2 /src | |
parent | caf40fa1efbc0fe1e430eeea0a78c84fbe368458 (diff) | |
download | diplonat-13cd2375d84e656fd6531c86175f9a87259f7070.tar.gz diplonat-13cd2375d84e656fd6531c86175f9a87259f7070.zip |
Set the correct endpoint
Diffstat (limited to 'src')
-rw-r--r-- | src/main.rs | 3 |
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>>() |