Skip to content

Commit

Permalink
Update docs about channel clone usage. (#123)
Browse files Browse the repository at this point in the history
  • Loading branch information
gftea committed Feb 11, 2024
1 parent 2559eb3 commit 07b5924
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion amqprs/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "amqprs"
version = "1.5.2"
version = "1.5.3"
edition = "2021"
rust-version = "1.56"
license = "MIT"
Expand Down
6 changes: 3 additions & 3 deletions amqprs/src/api/channel/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
///
Expand Down

0 comments on commit 07b5924

Please sign in to comment.