UploadCaTar: currectly write all data using write_all()
This commit is contained in:
parent
4d2881dd4c
commit
1c7a88aeff
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user