fix: flush downloaded files before returning
This commit is contained in:
1 parent
09bc8f26fb
commit
db23b86dca
1 file changed
+1
@@ -222,6 +222,7 @@ async fn download_file_once(
|
|||||||
downloaded += chunk.len() as u64;
|
downloaded += chunk.len() as u64;
|
||||||
progress_cb(downloaded, total);
|
progress_cb(downloaded, total);
|
||||||
}
|
}
|
||||||
|
file.flush().await?;
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user