aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2020-05-09 15:53:22 +0200
committerQuentin Dufour <quentin@deuxfleurs.fr>2020-05-09 15:53:22 +0200
commita19ae25a7d20d338243e2fef5a1fd45437701c2a (patch)
tree9d40a4c7a5af1726a60371af435cb391b2bb3c06 /src/main.rs
parent643d6980e5c0f04928edf05219f735495e5589a5 (diff)
downloaddiplonat-a19ae25a7d20d338243e2fef5a1fd45437701c2a.tar.gz
diplonat-a19ae25a7d20d338243e2fef5a1fd45437701c2a.zip
Rewrite with modules, still in progress...
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/main.rs b/src/main.rs
index 4a08ecc..a4c4e21 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -6,17 +6,15 @@ use log::*;
use igd::aio::search_gateway;
use igd::PortMappingProtocol;
+mod diplonat;
mod config;
#[tokio::main]
async fn main() {
pretty_env_logger::init();
- let config = match config::load_env() {
- Ok(val) => val,
- Err(e) => return println!("unable to build configuration: {}", e),
- };
-
+ let ctx = diplonat::setup().expect("Setup failed:");
+/*
let url = format!("http://127.0.0.1:8500/v1/catalog/node/{}", config.consul_node_name);
let resp = reqwest::get(&url)
.await
@@ -37,4 +35,5 @@ async fn main() {
Ok(_) => (),
Err(e) => return println!("Unable to insert port 1234: {}", e),
};
+ */
}