From 0741990154d9980b6eae2da11036a3d106400e2d Mon Sep 17 00:00:00 2001 From: Jun Kurihara Date: Tue, 28 Nov 2023 22:32:49 +0900 Subject: [PATCH] wip: fix sync --- rpxy-lib/src/forwarder/client.rs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/rpxy-lib/src/forwarder/client.rs b/rpxy-lib/src/forwarder/client.rs index 57538fa..576999b 100644 --- a/rpxy-lib/src/forwarder/client.rs +++ b/rpxy-lib/src/forwarder/client.rs @@ -35,7 +35,7 @@ pub struct Forwarder { impl ForwardRequest> for Forwarder where C: Send + Sync + Connect + Clone + 'static, - B1: Body + Send + Unpin + 'static, + B1: Body + Send + Sync + Unpin + 'static, ::Data: Send, ::Error: Into>, B2: Body, @@ -80,11 +80,7 @@ where let connector = HttpsConnector::new(); let executor = LocalExecutor::new(_globals.runtime_handle.clone()); - let inner_h2 = Client::builder(executor) - .http2_adaptive_window(true) - .http2_only(true) - .set_host(true) - .build::<_, B1>(connector); + let inner_h2 = Client::builder(executor).http2_only(true).build::<_, B1>(connector); // #[cfg(feature = "native-roots")] // let builder = hyper_rustls::HttpsConnectorBuilder::new().with_native_roots();