Remove futures dependency

Use tokio::join instead of futures::join
This commit is contained in:
2024-05-16 19:23:48 -04:00
parent 12384b5a75
commit 8ffe09381c
3 changed files with 1 additions and 4 deletions

View File

@ -102,7 +102,7 @@ pub async fn search(query: String, limit: i64) -> Result<(Vec<Album>, Vec<Artist
let artists = search_artists(query.clone(), limit);
let songs = search_songs(query.clone(), limit);
use futures::join;
use tokio::join;
let (albums, artists, songs) = join!(albums, artists, songs);
Ok((albums?, artists?, songs?))