We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d61aa95 commit 1fc2257Copy full SHA for 1fc2257
sdk/examples/sqs/src/bin/sqs-hello-world.rs
@@ -5,7 +5,7 @@
5
6
use std::process::exit;
7
8
-/// Sends a message to and receives the message from a queue.
+/// Sends a message to and receives the message from a FIFO queue.
9
#[tokio::main]
10
async fn main() -> Result<(), sqs::Error> {
11
tracing_subscriber::fmt::init();
@@ -29,6 +29,8 @@ async fn main() -> Result<(), sqs::Error> {
29
.send_message()
30
.queue_url(&queue_url)
31
.message_body("hello from my queue")
32
+ // message group id required for FIFO Queue
33
+ // comment out ".message_group_id("MyGroup")" for standard queues
34
.message_group_id("MyGroup")
35
.send()
36
.await?;
0 commit comments