Skip to content

Commit

Permalink
fix compile error in async
Browse files Browse the repository at this point in the history
  • Loading branch information
Mateo committed Nov 5, 2023
1 parent 4989ff2 commit 07fee8f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tinyhttp-internal/src/async_http.rs
Original file line number Diff line number Diff line change
Expand Up @@ -346,10 +346,10 @@ async fn parse_request<P: AsyncReadExt + AsyncWriteExt + Unpin>(conn: &mut P, mu
);
}

#[cfg(feature = "middleware")]
if let Some(middleware) = config.get_response_middleware() {
middleware.lock().unwrap()(res_brw.deref_mut());
}
// #[cfg(feature = "middleware")]
// if let Some(middleware) = config.get_response_middleware() {
// middleware.lock().unwrap()(res_brw.deref_mut());
// }

res_brw.send(conn).await;
}

0 comments on commit 07fee8f

Please sign in to comment.