test(benches): don't concat chunks, just drop them
This commit is contained in:
@@ -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))
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user