feat!: queue system
This commit is contained in:
@@ -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| {
|
||||
|
||||
Reference in New Issue
Block a user