Skip to content

Commit

Permalink
Merge pull request #7 from MadebyAe/feat/delete_message_from_sqs-retu…
Browse files Browse the repository at this point in the history
…rn-type

feat/delete_message_from_sqs-return-type
  • Loading branch information
MadebyAe authored Mar 2, 2024
2 parents 762c72b + 43b32d0 commit e540f36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sqs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ fn get_sqs_url_env_key() -> &'static str {
return "AWS_SQS_URL";
}

pub async fn delete_message_from_sqs(receipt_handle: &str) -> {
pub async fn delete_message_from_sqs(receipt_handle: &str) -> Result<(), SqsError> {
let config: SdkConfig = aws_config::load_from_env().await;
let sqs_client = Client::new(&config);
let queue_url = get_sqs_url_from_env_var().unwrap();
Expand Down

0 comments on commit e540f36

Please sign in to comment.