Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion sdk/examples/sqs/src/bin/sqs-hello-world.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

use std::process::exit;

/// Sends a message to and receives the message from a queue.
/// Sends a message to and receives the message from a FIFO queue.
#[tokio::main]
async fn main() -> Result<(), sqs::Error> {
tracing_subscriber::fmt::init();
Expand All @@ -29,6 +29,8 @@ async fn main() -> Result<(), sqs::Error> {
.send_message()
.queue_url(&queue_url)
.message_body("hello from my queue")
// message group id required for FIFO Queue
// comment out ".message_group_id("MyGroup")" for standard queues
.message_group_id("MyGroup")
.send()
.await?;
Expand Down