Remove futures dependency
Use tokio::join instead of futures::join
This commit is contained in:
parent
12384b5a75
commit
8ffe09381c
1
Cargo.lock
generated
1
Cargo.lock
generated
@ -1576,7 +1576,6 @@ dependencies = [
|
||||
"diesel_migrations",
|
||||
"dotenv",
|
||||
"flexi_logger",
|
||||
"futures",
|
||||
"http",
|
||||
"icondata",
|
||||
"lazy_static",
|
||||
|
@ -26,7 +26,6 @@ openssl = { version = "0.10.63", optional = true }
|
||||
time = { version = "0.3.34", features = ["serde"], default-features = false }
|
||||
diesel_migrations = { version = "2.1.0", optional = true }
|
||||
pbkdf2 = { version = "0.12.2", features = ["simple"], optional = true }
|
||||
futures = { version = "0.3.30", default-features = false, optional = true }
|
||||
tokio = { version = "1", optional = true, features = ["rt-multi-thread"] }
|
||||
axum = { version = "0.7.5", optional = true }
|
||||
tower = { version = "0.4.13", optional = true }
|
||||
@ -61,7 +60,6 @@ ssr = [
|
||||
"openssl",
|
||||
"diesel_migrations",
|
||||
"pbkdf2",
|
||||
"futures",
|
||||
"tokio",
|
||||
"axum",
|
||||
"tower",
|
||||
|
@ -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?))
|
||||
|
Loading…
x
Reference in New Issue
Block a user