diff options
author | Quentin Dufour <quentin@deuxfleurs.fr> | 2020-05-08 10:57:10 +0200 |
---|---|---|
committer | Quentin Dufour <quentin@deuxfleurs.fr> | 2020-05-08 10:57:10 +0200 |
commit | 15a8745a3179644e9f4874f135a441b1ebe4fd6e (patch) | |
tree | 9bcba05cca67cc0dc7e8328ed62ce7aa3590fc02 | |
parent | 506d4b1cbfe36108594eb4819593c9b9aecb8358 (diff) | |
download | diplonat-15a8745a3179644e9f4874f135a441b1ebe4fd6e.tar.gz diplonat-15a8745a3179644e9f4874f135a441b1ebe4fd6e.zip |
Add README
-rw-r--r-- | README.md | 12 | ||||
-rw-r--r-- | src/main.rs | 6 |
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 { |