refactor(client): remove Unpin requirement from request body

This commit is contained in:
Sean McArthur
2019-12-11 14:05:07 -08:00
parent 52cc3f7367
commit a07142da2d
3 changed files with 6 additions and 7 deletions

View File

@@ -91,7 +91,7 @@ where
impl<B> Future for ClientTask<B>
where
B: Payload + Unpin + 'static,
B: Payload + 'static,
{
type Output = crate::Result<Dispatched>;
@@ -133,7 +133,7 @@ where
};
if !eos {
let mut pipe = PipeToSendStream::new(body, body_tx).map(|res| {
let mut pipe = Box::pin(PipeToSendStream::new(body, body_tx)).map(|res| {
if let Err(e) = res {
debug!("client request body error: {}", e);
}