fix unused import without feature jemalloc_conf

fix span passed by value

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk 2025-03-09 03:14:00 +00:00
parent 07ec9d6d85
commit aa4d2e2363
2 changed files with 3 additions and 4 deletions

View file

@ -37,7 +37,7 @@ pub(crate) async fn handle(
let parent = Span::current();
let task = services.server.runtime().spawn(async move {
tokio::select! {
response = execute(&services_, req, next, parent) => response,
response = execute(&services_, req, next, &parent) => response,
response = services_.server.until_shutdown()
.then(|()| {
let timeout = services_.server.config.client_shutdown_timeout;
@ -79,7 +79,7 @@ async fn execute(
services: &Arc<Services>,
req: http::Request<axum::body::Body>,
next: axum::middleware::Next,
parent: Span,
parent: &Span,
) -> Response {
#[cfg(debug_assertions)]
conduwuit::defer! {{