From 2f875255e1471df87ca9b7828c6253e6e3ea3938 Mon Sep 17 00:00:00 2001 From: Sean McArthur Date: Tue, 3 Mar 2020 15:47:49 -0800 Subject: [PATCH] Fix deprecated hyper client builder methods --- Cargo.toml | 2 +- src/async_impl/client.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 90b01ac..fbb95ee 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -74,7 +74,7 @@ encoding_rs = "0.8" futures-core = { version = "0.3.0", default-features = false } futures-util = { version = "0.3.0", default-features = false } http-body = "0.3.0" -hyper = { version = "0.13", default-features = false, features = ["tcp"] } +hyper = { version = "0.13.3", default-features = false, features = ["tcp"] } lazy_static = "1.4" log = "0.4" mime = "0.3.7" diff --git a/src/async_impl/client.rs b/src/async_impl/client.rs index 24d2433..6281697 100644 --- a/src/async_impl/client.rs +++ b/src/async_impl/client.rs @@ -300,7 +300,7 @@ impl ClientBuilder { builder.http2_initial_connection_window_size(http2_initial_connection_window_size); } - builder.max_idle_per_host(config.max_idle_per_host); + builder.pool_max_idle_per_host(config.max_idle_per_host); if config.http1_title_case_headers { builder.http1_title_case_headers(true);