Skip to content

Commit

Permalink
No unwrap.
Browse files Browse the repository at this point in the history
thx copilot
  • Loading branch information
kixelated committed Jul 25, 2024
1 parent 9ab6c6b commit 5ae0aa8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion moq-api/src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ impl Server {

log::info!("serving requests: bind={}", self.config.bind);

let listener = tokio::net::TcpListener::bind(&self.config.bind).await.unwrap();
let listener = tokio::net::TcpListener::bind(&self.config.bind).await?;
axum::serve(listener, app.into_make_service()).await?;

Ok(())
Expand Down

0 comments on commit 5ae0aa8

Please sign in to comment.