From 746467ccf50846d2f959e35221476fc9dc74fc56 Mon Sep 17 00:00:00 2001 From: Simon Chen Date: Sun, 11 Feb 2024 11:01:34 +0000 Subject: [PATCH] Update docs about channel usage. --- Cargo.lock | 2 +- amqprs/Cargo.toml | 2 +- amqprs/src/api/channel/mod.rs | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index abf9033..ab108f0 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -61,7 +61,7 @@ dependencies = [ [[package]] name = "amqprs" -version = "1.5.2" +version = "1.5.3" dependencies = [ "amqp_serde", "async-trait", diff --git a/amqprs/Cargo.toml b/amqprs/Cargo.toml index b5ac837..4406468 100644 --- a/amqprs/Cargo.toml +++ b/amqprs/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "amqprs" -version = "1.5.2" +version = "1.5.3" edition = "2021" rust-version = "1.56" license = "MIT" diff --git a/amqprs/src/api/channel/mod.rs b/amqprs/src/api/channel/mod.rs index 1732306..cc19c89 100644 --- a/amqprs/src/api/channel/mod.rs +++ b/amqprs/src/api/channel/mod.rs @@ -121,9 +121,9 @@ pub(crate) enum DispatcherManagementCommand { /// /// # Concurrency /// -/// `Channel` is not cloneable because of sharing its instances between -/// tasks/threads should be avoided. Applications should be using a `Channel` -/// per task/thread. +/// It is not recommended to share same `Channel` object between tasks/threads, because it allows +/// interleaving the AMQP protocol messages in same channel in concurrent setup. +/// Applications should be aware of the this limitation in AMQP protocol itself. /// /// See detailed explanation in [`Java Client`], it applies to the library also. ///