Skip to content

Commit

Permalink
change: deprecate with_max_connections
Browse files Browse the repository at this point in the history
Follow-up for stabilising Config.
  • Loading branch information
Fishrock123 committed Aug 10, 2021
1 parent bfc0c79 commit b414c9f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/h1/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,10 @@ impl H1Client {
}

/// Create a new instance.
#[deprecated(
since = "6.5.0",
note = "This function is misnamed. Prefer `Config::max_connections_per_host` instead."
)]
pub fn with_max_connections(max: usize) -> Self {
#[cfg(features = "h1_client")]
assert!(max > 0, "max_connections_per_host with h1_client must be greater than zero or it will deadlock!");
Expand Down

0 comments on commit b414c9f

Please sign in to comment.