test(benches): don't concat chunks, just drop them

This commit is contained in:
Sean McArthur
2018-10-25 17:22:01 -07:00
parent 79f970c7ff
commit 576addd531

View File

@@ -160,8 +160,11 @@ fn spawn_hello(rt: &mut Runtime, body: &'static [u8]) -> SocketAddr {
let srv = Server::bind(&addr) let srv = Server::bind(&addr)
.serve(move || { .serve(move || {
service_fn(move |req: Request<Body>| { service_fn(move |req: Request<Body>| {
req.into_body() req
.concat2() .into_body()
.for_each(|_chunk| {
Ok(())
})
.map(move |_| { .map(move |_| {
Response::new(Body::from(body)) Response::new(Body::from(body))
}) })