We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a5ab40c commit e4c879bCopy full SHA for e4c879b
src/web/mod.rs
@@ -326,16 +326,14 @@ pub fn start_background_metrics_webserver(
326
let metrics_axum_app = build_metrics_axum_app(context)?.into_make_service();
327
let runtime = context.runtime()?;
328
329
- thread::spawn(move || {
330
- runtime.block_on(async {
331
- if let Err(err) = axum::Server::bind(&axum_addr)
332
- .serve(metrics_axum_app)
333
- .await
334
- .context("error running metrics web server")
335
- {
336
- report_error(&err);
337
- }
338
- })
+ runtime.spawn(async move {
+ if let Err(err) = axum::Server::bind(&axum_addr)
+ .serve(metrics_axum_app)
+ .await
+ .context("error running metrics web server")
+ {
+ report_error(&err);
+ }
339
});
340
341
Ok(())
0 commit comments