From 37b98249f46ea02336332eaa3be2d192db09cc0b Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Wed, 16 Jan 2019 15:17:25 +0100 Subject: [PATCH] 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 --- src/api3/admin/datastore/upload_catar.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/api3/admin/datastore/upload_catar.rs b/src/api3/admin/datastore/upload_catar.rs index 6ae29f8e..165841d7 100644 --- a/src/api3/admin/datastore/upload_catar.rs +++ b/src/api3/admin/datastore/upload_catar.rs @@ -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()?;