From f51cd5e0120dfbb5e507272a2bc5097e5de9e6df Mon Sep 17 00:00:00 2001 From: Jun Kurihara Date: Wed, 20 Jul 2022 11:48:43 +0900 Subject: [PATCH] fix cargo.toml --- Cargo.toml | 2 -- src/proxy/proxy_h3.rs | 3 ++- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 575ccb9..3ff008e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -53,8 +53,6 @@ h3 = { git = "https://github.com/hyperium/h3.git" } h3-quinn = { git = "https://github.com/hyperium/h3.git" } bytes = "1.1.0" mimalloc-rust = "0.2.0" -thiserror = "1.0.31" - [dev-dependencies] diff --git a/src/proxy/proxy_h3.rs b/src/proxy/proxy_h3.rs index 794aede..be44917 100644 --- a/src/proxy/proxy_h3.rs +++ b/src/proxy/proxy_h3.rs @@ -99,9 +99,10 @@ where tls_server_name: ServerNameLC, ) -> Result<()> where - S: BidiStream + Send + 'static, + S: BidiStream, { let (req_parts, _) = req.into_parts(); + // let (mut send_stream, mut recv_stream) = stream.split(); // TODO: split stream and async body handling // TODO: h3 -> h2/http1.1等のプロトコル変換のため、一旦全部バッファリングしないと無理そう。H3->H3ならBytesを直に流し込めるのだが。 let mut body_buf = BytesMut::new();