refactor(dpop): apply clippy
This commit is contained in:
+7
-7
@@ -1396,13 +1396,13 @@ async fn run() -> Result<(), Box<dyn std::error::Error>> {
|
||||
// Installs the recorder BEFORE the main listener starts serving so
|
||||
// the first request's counter increments are captured (recorder
|
||||
// install is racy vs first emit — order matters).
|
||||
if let Some(metrics_addr) = config.metrics_listen {
|
||||
if let Err(err) = oxicloud::interfaces::metrics::spawn(metrics_addr).await {
|
||||
// Fail loudly: operators asked for metrics; not surfacing
|
||||
// this would hide a misconfigured scrape endpoint.
|
||||
tracing::error!("Prometheus /metrics setup failed: {err}");
|
||||
return Err(err);
|
||||
}
|
||||
if let Some(metrics_addr) = config.metrics_listen
|
||||
&& let Err(err) = oxicloud::interfaces::metrics::spawn(metrics_addr).await
|
||||
{
|
||||
// Fail loudly: operators asked for metrics; not surfacing
|
||||
// this would hide a misconfigured scrape endpoint.
|
||||
tracing::error!("Prometheus /metrics setup failed: {err}");
|
||||
return Err(err);
|
||||
}
|
||||
|
||||
let socket = make_socket(&addr, reuse_port)?;
|
||||
|
||||
Reference in New Issue
Block a user