From a3c4ca70fbb91ea0e2cdd146d69f05f1ec35bd0c Mon Sep 17 00:00:00 2001 From: Igor Katson Date: Fri, 3 May 2024 14:12:27 +0100 Subject: [PATCH] Nothing --- crates/librqbit/src/torrent_state/live/mod.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/librqbit/src/torrent_state/live/mod.rs b/crates/librqbit/src/torrent_state/live/mod.rs index 629daac..f673cd8 100644 --- a/crates/librqbit/src/torrent_state/live/mod.rs +++ b/crates/librqbit/src/torrent_state/live/mod.rs @@ -221,7 +221,8 @@ impl TorrentStateLive { // 8MB per torrent of disk buffering. let (disk_work_tx, mut disk_work_rx) = tokio::sync::mpsc::channel(if defer_writes { - 8 * 1024 * 1024 / CHUNK_SIZE as usize + const APPROX_WORK_ITEM_SIZE: usize = CHUNK_SIZE as usize + 300; + 8 * 1024 * 1024 / APPROX_WORK_ITEM_SIZE } else { 1 });