diff --git a/benches/end_to_end.rs b/benches/end_to_end.rs
index 59679e3df8..4d63ced9d3 100644
--- a/benches/end_to_end.rs
+++ b/benches/end_to_end.rs
@@ -236,8 +236,8 @@ fn spawn_server(rt: &mut Runtime, opts: &Opts) -> SocketAddr {
let body = opts.response_body;
let srv = Server::bind(&addr)
.http2_only(opts.http2)
- .http2_initial_stream_window_size_(opts.http2_stream_window)
- .http2_initial_connection_window_size_(opts.http2_conn_window)
+ .http2_initial_stream_window_size(opts.http2_stream_window)
+ .http2_initial_connection_window_size(opts.http2_conn_window)
.serve(make_service_fn( move |_| async move {
Ok::<_, hyper::Error>(service_fn(move |req: Request
| async move {
let mut req_body = req.into_body();
diff --git a/src/server/mod.rs b/src/server/mod.rs
index 5005376beb..55efc542f5 100644
--- a/src/server/mod.rs
+++ b/src/server/mod.rs
@@ -307,29 +307,13 @@ impl Builder {
self
}
- // soft-deprecated? deprecation warning just seems annoying...
- // reimplemented to take `self` instead of `&mut self`
- #[doc(hidden)]
- pub fn http2_initial_stream_window_size(&mut self, sz: impl Into