Skip to content

Commit

Permalink
[game] Update song importing
Browse files Browse the repository at this point in the history
  • Loading branch information
Drewol committed Oct 5, 2024
1 parent ad4c007 commit 88886bc
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions game/src/song_provider/files.rs
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ impl FileSongProvider {
})
.filter_map(|e| e.path().parent().map(|x| x.to_path_buf()))
.unique()
.chunks(1)
.chunks(16)
.into_iter()
.map(|folders| {
let worker_db = worker_db.clone();
Expand Down Expand Up @@ -389,7 +389,10 @@ impl FileSongProvider {
}
.collect_vec();

futures::future::join_all(songs).await;
for batch in songs.into_iter() {
info!("Processing song batch");
batch.await;
}

//send update to provider
info!("Finished importing");
Expand Down

0 comments on commit 88886bc

Please sign in to comment.