From 15a8745a3179644e9f4874f135a441b1ebe4fd6e Mon Sep 17 00:00:00 2001 From: Quentin Dufour Date: Fri, 8 May 2020 10:57:10 +0200 Subject: [PATCH] Add README --- README.md | 12 ++++++++++++ src/main.rs | 6 +++--- 2 files changed, 15 insertions(+), 3 deletions(-) create mode 100644 README.md 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::>() - .await.unwrap(); + .unwrap(); + //.json::>() + //.await.unwrap(); println!("{:#?}", resp); let gateway = match search_gateway(Default::default()).await {