Skip to content

Commit

Permalink
tests(bench): update bench to use new conn::http2::builder::new
Browse files Browse the repository at this point in the history
  • Loading branch information
dswij committed Jan 31, 2023
1 parent 7410d4e commit 6ed70fd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions benches/end_to_end.rs
Original file line number Diff line number Diff line change
Expand Up @@ -316,11 +316,10 @@ impl Opts {
let mut client = rt.block_on(async {
if self.http2 {
let io = tokio::net::TcpStream::connect(&addr).await.unwrap();
let (tx, conn) = hyper::client::conn::http2::Builder::new()
let (tx, conn) = hyper::client::conn::http2::Builder::new(support::TokioExecutor)
.initial_stream_window_size(self.http2_stream_window)
.initial_connection_window_size(self.http2_conn_window)
.adaptive_window(self.http2_adaptive_window)
.executor(support::TokioExecutor)
.handshake(io)
.await
.unwrap();
Expand Down

0 comments on commit 6ed70fd

Please sign in to comment.