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 {