init
Some checks failed
/ upload (release) Failing after 7s

This commit is contained in:
pavel 2026-02-13 18:06:48 +01:00
commit 69e0484f8d
5 changed files with 55 additions and 3 deletions

View file

@ -47,6 +47,7 @@ async fn main() -> anyhow::Result<()> {
http: reqwest::Client::new(),
voice: Arc::new(VoiceHub::default()),
};
let port = state.settings.port;
let app = Router::new()
.route("/health", get(handlers::health))
@ -55,7 +56,7 @@ async fn main() -> anyhow::Result<()> {
.with_state(state)
.layer(TraceLayer::new_for_http());
let addr: SocketAddr = "0.0.0.0:3000".parse()?;
let addr = SocketAddr::from(([0, 0, 0, 0], port));
info!(%addr, "server started");
let listener = tokio::net::TcpListener::bind(addr).await?;