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