Skip to content

Commit

Permalink
Change rounting_key variable name to rounting_key in examples
Browse files Browse the repository at this point in the history
  • Loading branch information
Dantsz committed Nov 4, 2023
1 parent 58d8425 commit 1141656
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions examples/src/basic_pub_sub.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,13 @@ async fn main() {
.unwrap();

// bind the queue to exchange
let rounting_key = "amqprs.example";
let routing_key = "amqprs.example";
let exchange_name = "amq.topic";
channel
.queue_bind(QueueBindArguments::new(
&queue_name,
exchange_name,
rounting_key,
routing_key,
))
.await
.unwrap();
Expand All @@ -85,7 +85,7 @@ async fn main() {
.into_bytes();

// create arguments for basic_publish
let args = BasicPublishArguments::new(exchange_name, rounting_key);
let args = BasicPublishArguments::new(exchange_name, routing_key);

channel
.basic_publish(BasicProperties::default(), content, args)
Expand Down
4 changes: 2 additions & 2 deletions examples/src/longlive_basic_consumer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,13 @@ async fn main() {
.unwrap();

// bind the queue to exchange
let rounting_key = "amqprs.example";
let routing_key = "amqprs.example";
let exchange_name = "amq.topic";
channel
.queue_bind(QueueBindArguments::new(
&queue_name,
exchange_name,
rounting_key,
routing_key,
))
.await
.unwrap();
Expand Down

0 comments on commit 1141656

Please sign in to comment.