diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/main.rs | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs index 2bfd8b0..3733c30 100644 --- a/src/main.rs +++ b/src/main.rs @@ -79,7 +79,6 @@ fn hits_from_route(route: &str) -> i32 { async fn main() -> Result<(), Box<dyn std::error::Error>> { std::env::set_var("RUST_LOG", "windmark,locus=trace"); pretty_env_logger::init(); - dotenv::dotenv().ok(); let mut time_mount = Instant::now(); let mut router = Router::new(); @@ -87,7 +86,6 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> { router.set_private_key_file(".locus/locus_private.pem"); router.set_certificate_chain_file(".locus/locus_pair.pem"); - router.set_port(std::env::var("PORT").unwrap().parse().unwrap()); router.set_pre_route_callback(Box::new(|stream, url, _| { info!( "accepted connection from {} to {}", |