Added function call and TODOs
Some checks failed
Rust Build / Check (pull_request) Successful in 31s
Rust Build / Test Suite (pull_request) Successful in 32s
Rust Build / Rustfmt (pull_request) Failing after 25s
Rust Build / Clippy (pull_request) Successful in 33s
Rust Build / build (pull_request) Successful in 40s
Some checks failed
Rust Build / Check (pull_request) Successful in 31s
Rust Build / Test Suite (pull_request) Successful in 32s
Rust Build / Rustfmt (pull_request) Failing after 25s
Rust Build / Clippy (pull_request) Successful in 33s
Rust Build / build (pull_request) Successful in 40s
This commit is contained in:
15
src/main.rs
15
src/main.rs
@@ -88,7 +88,20 @@ async fn some_work(
|
||||
{
|
||||
Ok(_inner_response) => {
|
||||
println!("Response: {_inner_response:?}");
|
||||
Ok(())
|
||||
|
||||
// TODO: Do not hard code this. Check if one of the existing
|
||||
// endpoints already have the user_id
|
||||
let user_id = uuid::Uuid::new_v4();
|
||||
// TODO: Place this somewhere else
|
||||
let song_type = String::from("flac");
|
||||
match the_rest::create_song(app_base_url, &metadata, &user_id, &song_type).await {
|
||||
Ok(_) => {
|
||||
Ok(())
|
||||
}
|
||||
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