Skip to content

Commit cadbe9a

Browse files
committed
fix: remove flush
1 parent b192059 commit cadbe9a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/wasm/src/funcs.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,9 +151,8 @@ impl DownloadNavigationData {
151151
.wait_for_data()
152152
.await?;
153153

154-
// Write and force flush to limit how much data we hold in memory at a time (will be a max of DOWNLOAD_CHUNK_SIZE_BYTES)
154+
// Write to limit how much data we hold in memory at a time (will be a max of DOWNLOAD_CHUNK_SIZE_BYTES)
155155
download_file.write_all(&data)?;
156-
download_file.flush()?;
157156
}
158157

159158
Ok(())

0 commit comments

Comments
 (0)