UploadCaTar: currectly write all data using write_all()

This commit is contained in:
Dietmar Maurer 2019-02-18 18:31:02 +01:00
parent 4d2881dd4c
commit 1c7a88aeff

View File

@ -33,7 +33,7 @@ impl Future for UploadCaTar {
match try_ready!(self.stream.poll()) {
Some(chunk) => {
self.count += chunk.len();
if let Err(err) = self.index.write(&chunk) {
if let Err(err) = self.index.write_all(&chunk) {
bail!("writing chunk failed - {}", err);
}
}