Quentin 1 year ago
parent
commit
506d4b1cbf
  1. 10
      diplonat_debug
  2. 2
      src/main.rs

10
diplonat_debug

@ -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

2
src/main.rs

@ -57,7 +57,7 @@ async fn main() {
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
.unwrap()
.json::<HashMap<String, String>>()

Loading…
Cancel
Save