Changed code to comply with async

This commit is contained in:
kdeng00
2025-08-30 12:48:55 -04:00
parent e109789b18
commit 82282bb4b0
+1 -3
View File
@@ -169,9 +169,7 @@ impl CommitManager {
println!("Deleting song..");
let res_fut = del.delete_song(&token, &song);
let result = Runtime::new().unwrap().block_on(res_fut);
match result {
match del.delete_song(&token, &song).await {
Ok(o) => {
println!("Song (Id {:?}) has been successfully deleted", o.id);
}