From 3c0ed9a2f350749f48f579867139dd9e3afdf182 Mon Sep 17 00:00:00 2001 From: Jeremiah Senkpiel Date: Thu, 19 Aug 2021 10:43:35 -0700 Subject: [PATCH] 6.5.1 Same as 6.5.0 with one change: `Config::max_connections_per_host()` is now properly named `Config::set_max_connections_per_host()`. ### Added - `Config` has been stabilized and is now available by default! - `wasm_client` support for `Config` (only timeouts). - `Config::max_connections_per_host` (Supported on `h1_client` and `curl_client`.) ### Deprecated - `H1Client::with_max_connections()` was been superseded by `Config::max_connections_per_host`. --- CHANGELOG.md | 8 +++++++- Cargo.toml | 2 +- src/config.rs | 2 +- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4440f6f..daef8af 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,15 +7,21 @@ and this project adheres to [Semantic Versioning](https://book.async.rs/overview ## [Unreleased] +Same as 6.5.0 with one change: + +`Config::max_connections_per_host()` is now properly named `Config::set_max_connections_per_host()`. + ## [6.5.0] +(Yanked) + ### Added - `Config` has been stabilized and is now available by default! - `wasm_client` support for `Config` (only timeouts). - `Config::max_connections_per_host` (Supported on `h1_client` and `curl_client`.) ### Deprecated -- `H1Client::with_max_connections()` was been superseded by `Config::max_connections_per_host`. +- `H1Client::with_max_connections()` will be superseded by `Config::max_connections_per_host`. ## [6.4.1] - 2021-05-19 diff --git a/Cargo.toml b/Cargo.toml index 535b676..0603cae 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "http-client" -version = "6.5.0" +version = "6.5.1" license = "MIT OR Apache-2.0" repository = "https://github.com/http-rs/http-client" documentation = "https://docs.rs/http-client" diff --git a/src/config.rs b/src/config.rs index 09ce6e8..4232e69 100644 --- a/src/config.rs +++ b/src/config.rs @@ -110,7 +110,7 @@ impl Config { } /// Set the maximum number of simultaneous connections that this client is allowed to keep open to individual hosts at one time. - pub fn max_connections_per_host(mut self, max_connections_per_host: usize) -> Self { + pub fn set_max_connections_per_host(mut self, max_connections_per_host: usize) -> Self { self.max_connections_per_host = max_connections_per_host; self }