aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFuwn <[email protected]>2022-03-30 03:55:30 -0700
committerFuwn <[email protected]>2022-03-30 03:55:30 -0700
commit0eb30f07c049085d14b608b64ac057445466ee98 (patch)
treec2d3c0dc11261c6a4b39b5df6c9dab0778c36bc5 /src
parentfix: reverts (diff)
downloadlocus-0eb30f07c049085d14b608b64ac057445466ee98.tar.xz
locus-0eb30f07c049085d14b608b64ac057445466ee98.zip
fix: reverts
Diffstat (limited to 'src')
-rw-r--r--src/main.rs2
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 {}",