Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
kayabaNerve committed Dec 21, 2023
1 parent 4cd4961 commit 6a38781
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions common/request/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,19 @@ impl Client {
res.set_keepalive(None);
}
#[cfg(feature = "tls")]
let res =
HttpsConnectorBuilder::new().with_native_roots().https_or_http().enable_http1().wrap_connector(res);
let res = HttpsConnectorBuilder::new()
.with_native_roots()
.https_or_http()
.enable_http1()
.wrap_connector(res);
res
}

pub fn with_connection_pool() -> Client {
Client {
connection: Connection::ConnectionPool(hyper::Client::builder().build(Self::connector(false))),
connection: Connection::ConnectionPool(
hyper::Client::builder().build(Self::connector(false)),
),
}
}

Expand Down

0 comments on commit 6a38781

Please sign in to comment.