Skip to content

Commit 576addd

Browse files
committed
test(benches): don't concat chunks, just drop them
1 parent 79f970c commit 576addd

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

benches/end_to_end.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,11 @@ fn spawn_hello(rt: &mut Runtime, body: &'static [u8]) -> SocketAddr {
160160
let srv = Server::bind(&addr)
161161
.serve(move || {
162162
service_fn(move |req: Request<Body>| {
163-
req.into_body()
164-
.concat2()
163+
req
164+
.into_body()
165+
.for_each(|_chunk| {
166+
Ok(())
167+
})
165168
.map(move |_| {
166169
Response::new(Body::from(body))
167170
})

0 commit comments

Comments
 (0)