aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2020-05-08 10:57:10 +0200
committerQuentin Dufour <quentin@deuxfleurs.fr>2020-05-08 10:57:10 +0200
commit15a8745a3179644e9f4874f135a441b1ebe4fd6e (patch)
tree9bcba05cca67cc0dc7e8328ed62ce7aa3590fc02
parent506d4b1cbfe36108594eb4819593c9b9aecb8358 (diff)
downloaddiplonat-15a8745a3179644e9f4874f135a441b1ebe4fd6e.tar.gz
diplonat-15a8745a3179644e9f4874f135a441b1ebe4fd6e.zip
Add README
-rw-r--r--README.md12
-rw-r--r--src/main.rs6
2 files changed, 15 insertions, 3 deletions
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..2826cc0
--- /dev/null
+++ b/README.md
@@ -0,0 +1,12 @@
+Diplonat
+========
+
+```bash
+cargo build
+
+export DIPLONAT_PRIVATE_IP="192.168.0.18"
+export DIPLONAT_REFRESH_TIME="60"
+export DIPLONAT_EXPIRATION_TIME="300"
+export DIPLONAT_CONSUL_NODE_NAME="lheureduthe"
+cargo run
+```
diff --git a/src/main.rs b/src/main.rs
index 1a5c628..ff98f46 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -59,9 +59,9 @@ async fn main() {
let resp = reqwest::get("http://127.0.0.1:8500")
.await
- .unwrap()
- .json::<HashMap<String, String>>()
- .await.unwrap();
+ .unwrap();
+ //.json::<HashMap<String, String>>()
+ //.await.unwrap();
println!("{:#?}", resp);
let gateway = match search_gateway(Default::default()).await {