Update to hyper 1.0.0-rc.4

This commit is contained in:
David Pedersen
2023-07-15 23:58:45 +02:00
parent 79ea2747e9
commit 4109796fff
2 changed files with 4 additions and 2 deletions
+1
View File
@@ -41,6 +41,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()