From 1141656a46b0fd98f00ec928a5cd56364b20d4e7 Mon Sep 17 00:00:00 2001 From: Dan Costinas Date: Sat, 4 Nov 2023 17:54:41 +0200 Subject: [PATCH] Change rounting_key variable name to rounting_key in examples --- examples/src/basic_pub_sub.rs | 6 +++--- examples/src/longlive_basic_consumer.rs | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/src/basic_pub_sub.rs b/examples/src/basic_pub_sub.rs index 84c0d4b..bd7e982 100644 --- a/examples/src/basic_pub_sub.rs +++ b/examples/src/basic_pub_sub.rs @@ -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(); @@ -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) diff --git a/examples/src/longlive_basic_consumer.rs b/examples/src/longlive_basic_consumer.rs index bd0ebb6..4eb5f00 100644 --- a/examples/src/longlive_basic_consumer.rs +++ b/examples/src/longlive_basic_consumer.rs @@ -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();