fix: reduce buffer size to accomodate new downloader logic

This commit is contained in:
Tal 2025-11-18 20:59:15 +01:00
parent 2dd165d562
commit 37ca383e6a

View File

@ -30,7 +30,7 @@ impl Downloader {
pub async fn init(size: usize, tracks: tracks::List, tx: Sender<crate::Message>) -> Handle { pub async fn init(size: usize, tracks: tracks::List, tx: Sender<crate::Message>) -> Handle {
let client = Client::new(); let client = Client::new();
let (qtx, qrx) = mpsc::channel(size); let (qtx, qrx) = mpsc::channel(size - 1);
let downloader = Self { let downloader = Self {
queue: qtx, queue: qtx,
tx, tx,