http and ws: fix build errors with --no-default-features

This commit is contained in:
Joakim Frostegård 2024-01-27 18:21:44 +01:00
parent acabf1581f
commit 964636db7c
4 changed files with 16 additions and 7 deletions

View file

@ -240,14 +240,14 @@ async fn clean_connections(
}
});
::log::info!(
"cleaned connections in worker {}, {} references remaining",
WORKER_INDEX.get(),
connection_slab.borrow_mut().len()
);
#[cfg(feature = "metrics")]
{
::log::info!(
"cleaned connections in worker {}, {} references remaining",
WORKER_INDEX.get(),
connection_slab.borrow_mut().len()
);
// Increment gauges by zero to prevent them from being removed due to
// idleness