feat: integrate axum-governor for rate limiting and update dependencies

This commit is contained in:
2026-05-09 22:35:08 +02:00
parent d89d373a91
commit a078d5315e
5 changed files with 143 additions and 82 deletions

View File

@@ -45,7 +45,7 @@ async fn main() -> anyhow::Result<()> {
let addr = format!("{}:{}", host, port);
let listener = TcpListener::bind(&addr).await?;
tracing::info!("Listening on {}", addr);
axum::serve(listener, app).await?;
axum::serve(listener, app.into_make_service_with_connect_info::<std::net::SocketAddr>()).await?;
Ok(())
}