diff --git a/src/client.rs b/src/client.rs
index cd6fe69..2b72482 100644
--- a/src/client.rs
+++ b/src/client.rs
@@ -156,7 +156,7 @@ async fn stream(url: &str, req: &Request
) -> Result, String
// Build the hyper client from the HTTPS connector.
let client: Client<_, Body> = {
let https = hyper_rustls::HttpsConnectorBuilder::new().with_native_roots().https_only().enable_http1().build();
- client::Client::builder().pool_max_idle_per_host(0).build(https)
+ client::Client::builder().build(https)
};
let mut builder = Request::get(parsed_uri);
@@ -221,7 +221,7 @@ fn request(method: &'static Method, path: String, redirect: bool, quarantine: bo
// Construct the hyper client from the HTTPS connector.
let client: Client<_, Body> = {
let https = hyper_rustls::HttpsConnectorBuilder::new().with_native_roots().https_only().enable_http1().build();
- client::Client::builder().pool_max_idle_per_host(0).build(https)
+ client::Client::builder().build(https)
};
let (token, vendor_id, device_id, user_agent, loid) = {
diff --git a/src/oauth.rs b/src/oauth.rs
index 03520a9..9a5d2f8 100644
--- a/src/oauth.rs
+++ b/src/oauth.rs
@@ -1,7 +1,7 @@
use std::{collections::HashMap, sync::atomic::Ordering, time::Duration};
use crate::{
- client::{CLIENT, OAUTH_CLIENT, OAUTH_IS_ROLLING_OVER, OAUTH_RATELIMIT_REMAINING},
+ client::{OAUTH_CLIENT, OAUTH_IS_ROLLING_OVER, OAUTH_RATELIMIT_REMAINING},
oauth_resources::ANDROID_APP_VERSION_LIST,
};
use base64::{engine::general_purpose, Engine as _};
@@ -96,7 +96,7 @@ impl Oauth {
// Send request
let client: client::Client<_, Body> = {
let https = hyper_rustls::HttpsConnectorBuilder::new().with_native_roots().https_only().enable_http1().build();
- client::Client::builder().pool_max_idle_per_host(0).build(https)
+ client::Client::builder().build(https)
};
let resp = client.request(request).await.ok()?;