Update to hyper 1.0.0-rc.4 (#2094)

This commit is contained in:
David Pedersen
2023-07-15 15:38:38 +00:00
committed by GitHub
parent 5d96ca9fcd
commit b34715fe81
8 changed files with 186 additions and 11 deletions
+1
View File
@@ -38,6 +38,7 @@ async fn main() {
tracing::debug!("listening on {addr}");
loop {
let (tcp_stream, _) = tcp_listener.accept().await.unwrap();
let tcp_stream = hyper_util::rt::TokioIo::new(tcp_stream);
let service = service.clone();
tokio::task::spawn(async move {
if let Err(http_err) = http1::Builder::new()