This commit is contained in:
Quentin 2020-05-08 10:34:10 +02:00
parent fdffe91397
commit 506d4b1cbf
2 changed files with 1 additions and 11 deletions

View file

@ -1,10 +0,0 @@
#!/bin/bash
# http://127.0.0.1:8500/v1/catalog/node/rincevent?index=0
# then look at X-Consul-Index
export DIPLONAT_PRIVATE_IP=10.3.3.37
export DIPLONAT_REFRESH_TIME=60
export DIPLONAT_EXPIRATION_TIME=180
export DIPLONAT_CONSUL_NODE_NAME=rincevent
./target/debug/diplonat

View file

@ -57,7 +57,7 @@ async fn main() {
Err(e) => return println!("unable to build configuration: {}", e), Err(e) => return println!("unable to build configuration: {}", e),
}; };
let resp = reqwest::get("http://127.0.0.1:5000") let resp = reqwest::get("http://127.0.0.1:8500")
.await .await
.unwrap() .unwrap()
.json::<HashMap<String, String>>() .json::<HashMap<String, String>>()