Skip to content

Commit

Permalink
chore: blocking doesn't need multi-threaded (#2146)
Browse files Browse the repository at this point in the history
  • Loading branch information
seanmonstar authored Feb 26, 2024
1 parent e639bdc commit 68547a0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ rustls-tls-manual-roots = ["__rustls"]
rustls-tls-webpki-roots = ["webpki-roots", "__rustls"]
rustls-tls-native-roots = ["rustls-native-certs", "__rustls"]

blocking = ["futures-util/io", "tokio/rt-multi-thread", "tokio/sync"]
blocking = ["futures-util/io", "tokio/sync"]

cookies = ["cookie_crate", "cookie_store"]

Expand Down
2 changes: 1 addition & 1 deletion src/blocking/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1172,7 +1172,7 @@ impl Default for Timeout {
}
}

pub(crate) struct KeepCoreThreadAlive(Option<Arc<InnerClientHandle>>);
pub(crate) struct KeepCoreThreadAlive(#[allow(unused)] Option<Arc<InnerClientHandle>>);

impl KeepCoreThreadAlive {
pub(crate) fn empty() -> KeepCoreThreadAlive {
Expand Down

0 comments on commit 68547a0

Please sign in to comment.