warthunder-leak-counter/src/main.rs

17 lines
349 B
Rust
Raw Permalink Normal View History

2024-06-22 02:54:58 -03:00
use anyhow::Result;
2024-06-22 13:42:24 -03:00
use warthunder_leak_counter::{run, Config};
2024-06-22 02:54:58 -03:00
#[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(())
}