Skip expensive merge for artist additon
All checks were successful
Cargo CI / Build and Test (pull_request) Successful in 1m4s
Cargo CI / Lint (pull_request) Successful in 43s

This commit is contained in:
Wojciech Kozlowski 2024-01-14 15:38:20 +01:00
parent 639e464ff5
commit 0566c3fa67

View File

@ -812,8 +812,8 @@ impl<LIB, DB> MusicHoard<LIB, DB> {
let artist_id: ArtistId = artist_id.into();
if self.get_artist(&artist_id).is_none() {
let new_artist = vec![Artist::new(artist_id)];
self.merge_with_secondary(new_artist);
self.collection.push(Artist::new(artist_id));
Self::sort_artists(&mut self.collection);
}
}