From f235073641207fba9453c193ff073ab0acd81598 Mon Sep 17 00:00:00 2001 From: phoenix Date: Wed, 12 Aug 2026 11:07:44 -0400 Subject: [PATCH] Adding s3 code --- src/callers/queue/song.rs | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/src/callers/queue/song.rs b/src/callers/queue/song.rs index 8746da0..b0744c1 100644 --- a/src/callers/queue/song.rs +++ b/src/callers/queue/song.rs @@ -212,6 +212,31 @@ pub mod endpoint { match lr.upload(&file_path, &data).await { Ok(res) => { println!("Result: {res:?}"); + + println!("Downloading file"); + match lr.download(&file_path).await { + Ok(res) => { + if res.is_empty() { + println!("This should not be empty"); + } else { + println!("Size: {:?}", res.len()); + println!("Going to delete file"); + + match lr.delete(&file_path).await { + Ok(res) => { + println!("Result: {res:?}"); + println!("Deleted"); + } + Err(err) => { + eprintln!("Error: {err:?}"); + } + } + } + } + Err(err) => { + eprintln!("Error: {err:?}"); + } + } } Err(err) => match err { labyrinth::Error::Info(err_str) => {