diff options
author | Quentin Dufour <quentin@deuxfleurs.fr> | 2020-05-22 18:41:13 +0200 |
---|---|---|
committer | Quentin Dufour <quentin@deuxfleurs.fr> | 2020-05-22 18:41:13 +0200 |
commit | e1d0eadb9dc5e2e3bea8bc48f7b33ad9ef632554 (patch) | |
tree | d1e891b87684c7907ff1245ebd5ad403804f6fd9 /src/main.rs | |
parent | deeecd93e1fc5545e6e0280d1799436638e84a38 (diff) | |
download | diplonat-e1d0eadb9dc5e2e3bea8bc48f7b33ad9ef632554.tar.gz diplonat-e1d0eadb9dc5e2e3bea8bc48f7b33ad9ef632554.zip |
WIP software
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/src/main.rs b/src/main.rs index fe4c767..7f985b1 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,24 +1,22 @@ mod messages; +mod environment; mod consul; mod consul_actor; +mod diplonat; //use std::net::SocketAddrV4; //use std::collections::HashMap; //use igd::PortMappingProtocol; use log::*; -use consul_actor::*; +use diplonat::Diplonat; #[tokio::main] async fn main() { pretty_env_logger::init(); info!("Starting Diplonat"); -/* - let diplo = Diplonat::new().await.expect("Setup failed"); - diplo.listen().await.expect("A runtime error occured"); -*/ - - let mut ca = ConsulActor::new("http://127.0.0.1:8500", "lheureduthe"); - ca.listen().await.expect("Oooooops"); + + let mut diplo = Diplonat::new().await.expect("Setup failed"); + diplo.listen().await.expect("A runtime error occured"); /* let gateway = match search_gateway(Default::default()).await { |