diff options
-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 { |