feat!: queue system

This commit is contained in:
2024-11-27 01:54:53 +01:00
parent 8443635fda
commit c71d3128e2
8 changed files with 386 additions and 57 deletions

View File

@@ -41,7 +41,7 @@ impl Library for LibraryService {
let response = TrackList {
tracks: tracks
.iter()
.into_iter()
.map(|t| Track {
hash: t.hash.clone(),
name: t.name.clone(),
@@ -74,7 +74,7 @@ pub fn index_path(
.collect();
let hashmaps: Vec<HashMap<String, TrackMetadata>> = entries
.par_iter()
.into_par_iter()
.fold(
|| HashMap::new(),
|mut acc: HashMap<String, TrackMetadata>, entry| {