Changed code to comply with async
This commit is contained in:
@@ -169,9 +169,7 @@ impl CommitManager {
|
|||||||
|
|
||||||
println!("Deleting song..");
|
println!("Deleting song..");
|
||||||
|
|
||||||
let res_fut = del.delete_song(&token, &song);
|
match del.delete_song(&token, &song).await {
|
||||||
let result = Runtime::new().unwrap().block_on(res_fut);
|
|
||||||
match result {
|
|
||||||
Ok(o) => {
|
Ok(o) => {
|
||||||
println!("Song (Id {:?}) has been successfully deleted", o.id);
|
println!("Song (Id {:?}) has been successfully deleted", o.id);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user