From 1c7a88aeffe087f0eb41dd1e36011666d39aaaf2 Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Mon, 18 Feb 2019 18:31:02 +0100 Subject: [PATCH] UploadCaTar: currectly write all data using write_all() --- src/api2/admin/datastore/catar.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api2/admin/datastore/catar.rs b/src/api2/admin/datastore/catar.rs index 94003bff..b2a60b12 100644 --- a/src/api2/admin/datastore/catar.rs +++ b/src/api2/admin/datastore/catar.rs @@ -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); } }