Code cleanup
Some checks failed
Rust Build / Check (pull_request) Failing after 34s
Rust Build / Test Suite (pull_request) Failing after 36s
Rust Build / Rustfmt (pull_request) Successful in 27s
Rust Build / Clippy (pull_request) Failing after 37s
Rust Build / build (pull_request) Failing after 35s
Some checks failed
Rust Build / Check (pull_request) Failing after 34s
Rust Build / Test Suite (pull_request) Failing after 36s
Rust Build / Rustfmt (pull_request) Successful in 27s
Rust Build / Clippy (pull_request) Failing after 37s
Rust Build / build (pull_request) Failing after 35s
This commit is contained in:
20
src/main.rs
20
src/main.rs
@@ -74,17 +74,25 @@ async fn wipe_data_from_queues(
|
|||||||
.json::<the_rest::wipe_data::song_queue::response::Response>()
|
.json::<the_rest::wipe_data::song_queue::response::Response>()
|
||||||
.await
|
.await
|
||||||
{
|
{
|
||||||
Ok(_resp) => match the_rest::wipe_data::coverart_queue::wipe_data(app_base_url, coverart_queue_id).await {
|
Ok(_resp) => match the_rest::wipe_data::coverart_queue::wipe_data(
|
||||||
Ok(inner_response) => match inner_response.json::<the_rest::wipe_data::coverart_queue::response::Response>().await {
|
app_base_url,
|
||||||
|
coverart_queue_id,
|
||||||
|
)
|
||||||
|
.await
|
||||||
|
{
|
||||||
|
Ok(inner_response) => match inner_response
|
||||||
|
.json::<the_rest::wipe_data::coverart_queue::response::Response>()
|
||||||
|
.await
|
||||||
|
{
|
||||||
Ok(_inner_resp) => {
|
Ok(_inner_resp) => {
|
||||||
println!("Wiped data from CoverArt queue");
|
println!("Wiped data from CoverArt queue");
|
||||||
println!("Resp: {_inner_resp:?}");
|
println!("Resp: {_inner_resp:?}");
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
Err(err) => Err(std::io::Error::other(err.to_string()))
|
Err(err) => Err(std::io::Error::other(err.to_string())),
|
||||||
}
|
},
|
||||||
Err(err) => Err(std::io::Error::other(err.to_string()))
|
Err(err) => Err(std::io::Error::other(err.to_string())),
|
||||||
}
|
},
|
||||||
Err(err) => Err(std::io::Error::other(err.to_string())),
|
Err(err) => Err(std::io::Error::other(err.to_string())),
|
||||||
},
|
},
|
||||||
Err(err) => Err(std::io::Error::other(err.to_string())),
|
Err(err) => Err(std::io::Error::other(err.to_string())),
|
||||||
|
Reference in New Issue
Block a user