mirror of
https://github.com/Drop-OSS/drop-app.git
synced 2025-11-14 00:31:33 +10:00
copy direct to disk
This commit is contained in:
@ -37,7 +37,9 @@ pub fn download_game_chunk(ctx: DropDownloadContext) {
|
||||
.expect("Failed to seek to file offset");
|
||||
}
|
||||
|
||||
let mut stream = BufWriter::with_capacity(1024 * 1024, file);
|
||||
// let mut stream = BufWriter::with_capacity(1024, file);
|
||||
|
||||
response.copy_to(&mut stream).unwrap();
|
||||
response.copy_to(&mut file).unwrap();
|
||||
|
||||
// stream.flush().unwrap();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user