diff options
author | Vika <vika@fireburn.ru> | 2023-02-27 00:07:51 +0300 |
---|---|---|
committer | Vika <vika@fireburn.ru> | 2023-02-27 00:07:51 +0300 |
commit | eb58228abf97ebca4ebe18d7803cbc2ca4c5df40 (patch) | |
tree | 5fbbefa0a317f01453b87068abab3fd7e17429ea /kittybox-rs/src/main.rs | |
parent | f8db76548c9fb15474ffa9cf0f545bd35191d73a (diff) | |
download | kittybox-eb58228abf97ebca4ebe18d7803cbc2ca4c5df40.tar.zst |
Clarity improvements
Diffstat (limited to 'kittybox-rs/src/main.rs')
-rw-r--r-- | kittybox-rs/src/main.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kittybox-rs/src/main.rs b/kittybox-rs/src/main.rs index 1586e60..395bb31 100644 --- a/kittybox-rs/src/main.rs +++ b/kittybox-rs/src/main.rs @@ -23,7 +23,7 @@ async fn main() { } }; - let listen_at = match env::var("SERVE_AT") + let listen_addr = match env::var("SERVE_AT") .ok() .unwrap_or_else(|| "[::]:8080".to_string()) .parse::<std::net::SocketAddr>() @@ -182,7 +182,7 @@ async fn main() { let tcp_listener = if let Ok(Some(listener)) = listenfd.take_tcp_listener(0) { listener } else { - std::net::TcpListener::bind(listen_at).unwrap() + std::net::TcpListener::bind(listen_addr).unwrap() }; // Set the socket to non-blocking so tokio can poll it // properly -- this is the async magic! |