Skip to content

Commit

Permalink
fix unwrap
Browse files Browse the repository at this point in the history
  • Loading branch information
JLerxky committed Jul 26, 2024
1 parent 0f2be0a commit 269152e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions cloud-util/src/metrics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -257,9 +257,7 @@ pub async fn run_metrics_exporter(
let app = Router::new()
.route("/metrics", get(exporter))
.fallback(handler_404);
let listener = tokio::net::TcpListener::bind(format!("[::]:{}", port))
.await
.unwrap();
let listener = tokio::net::TcpListener::bind(format!("[::]:{}", port)).await?;
axum::serve(listener, app).await?;
info!("exporting metrics to http://[::]:{}/metrics", port);

Expand Down

0 comments on commit 269152e

Please sign in to comment.