Skip to content

Commit

Permalink
Cleanup a todo
Browse files Browse the repository at this point in the history
  • Loading branch information
nick42d committed Nov 18, 2024
1 parent 358f1fd commit f1f639a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions youtui/src/app/server/downloader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ use crate::{
app::{
server::MAX_RETRIES,
structures::{ListSongID, Percentage},
CALLBACK_CHANNEL_SIZE,
},
core::send_or_error,
};
Expand Down Expand Up @@ -81,8 +82,7 @@ fn download_song(
song_video_id: VideoID<'static>,
song_playlist_id: ListSongID,
) -> impl Stream<Item = DownloadProgressUpdate> {
// TODO: CHANNEL SIZE
let (tx, rx) = tokio::sync::mpsc::channel(50);
let (tx, rx) = tokio::sync::mpsc::channel(CALLBACK_CHANNEL_SIZE);
tokio::spawn(async move {
tracing::info!("Running download");
send_or_error(
Expand Down

0 comments on commit f1f639a

Please sign in to comment.