feat(body): change Sender::send_data to an async fn.
The previous version is renamed to `try_send_data`. BREAKING CHANGE: Usage of `send_data` should either be changed to async/await or use `try_send_data`.
This commit is contained in:
@@ -101,7 +101,7 @@ mod response_body_lengths {
|
||||
},
|
||||
Bd::Unknown(b) => {
|
||||
let (mut tx, body) = hyper::Body::channel();
|
||||
tx.send_data(b.into()).expect("send_data");
|
||||
tx.try_send_data(b.into()).expect("try_send_data");
|
||||
reply.body_stream(body);
|
||||
b
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user