upload: don't return NotReady

We need to kick (poll) the stream's next element, so simply
reiterate, the try_read!() will then return NotReady from
the next stream item for us.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller 2019-01-16 15:17:25 +01:00
parent 1dcd52e5df
commit 37b98249f4
1 changed files with 0 additions and 1 deletions

View File

@ -29,7 +29,6 @@ impl Future for UploadCaTar {
if let Err(err) = self.index.write(&chunk) {
bail!("writing chunk failed - {}", err);
}
return Ok(Async::NotReady);
}
None => {
self.index.close()?;