Silent warning

pull/5/head
Frank Denis 5 years ago
parent 91df549d9d
commit 1a53a1906b

@ -38,6 +38,7 @@ async fn handle_client_connection(
Ok(response)
}
#[allow(unreachable_code)]
pub async fn prometheus_service(
varz: Varz,
metrics_config: MetricsConfig,
@ -54,4 +55,5 @@ pub async fn prometheus_service(
let connection = Http::new().serve_connection(client, service);
runtime.spawn(connection.map(|_| {}));
}
Ok(())
}

Loading…
Cancel
Save