warthunder-leak-counter/src/main.rs
2024-06-22 13:42:24 -03:00

16 lines
349 B
Rust

use anyhow::Result;
use warthunder_leak_counter::{run, Config};
#[tokio::main]
async fn main() -> Result<()> {
let config = Config {
port: std::env::var("WARTHUNDER_LEAK_SERVE_PORT")
.ok()
.and_then(|p| p.parse().ok())
.unwrap_or(8000u16),
};
run(config).await?.server.await?;
Ok(())
}