Skip to content

Commit 14dd1bb

Browse files
committed
change: deprecate with_max_connections
Follow-up for stabilising Config.
1 parent cd300ac commit 14dd1bb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/h1/mod.rs

+4
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,10 @@ impl H1Client {
9999
}
100100

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

0 commit comments

Comments
 (0)