This is an automated email from the ASF dual-hosted git repository.

mssun pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-teaclave.git


The following commit(s) were added to refs/heads/master by this push:
     new cc74ed0  Fix bug when downloading large remote input file (#389)
cc74ed0 is described below

commit cc74ed0f706520a34e57519992fa282d372ebf10
Author: czzmmc <[email protected]>
AuthorDate: Sat Jul 11 01:50:43 2020 +0800

    Fix bug when downloading large remote input file (#389)
---
 file_agent/src/agent.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/file_agent/src/agent.rs b/file_agent/src/agent.rs
index e366a71..3754e65 100644
--- a/file_agent/src/agent.rs
+++ b/file_agent/src/agent.rs
@@ -35,7 +35,7 @@ async fn download_remote_input_to_file(
     let mut outfile = tokio::fs::File::create(dest).await?;
 
     while let Some(chunk) = download.chunk().await? {
-        outfile.write(&chunk).await?;
+        outfile.write_all(&chunk).await?;
     }
 
     // Must flush tokio::io::BufWriter manually.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to