Skip to content

Commit

Permalink
wip: fix sync
Browse files Browse the repository at this point in the history
  • Loading branch information
junkurihara committed Nov 28, 2023
1 parent a9f5e0e commit 0741990
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions rpxy-lib/src/forwarder/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ pub struct Forwarder<C, B> {
impl<C, B1, B2> ForwardRequest<B1, IncomingOr<B2>> for Forwarder<C, B1>
where
C: Send + Sync + Connect + Clone + 'static,
B1: Body + Send + Unpin + 'static,
B1: Body + Send + Sync + Unpin + 'static,
<B1 as Body>::Data: Send,
<B1 as Body>::Error: Into<Box<(dyn std::error::Error + Send + Sync + 'static)>>,
B2: Body,
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit 0741990

Please sign in to comment.