Skip to content

Commit

Permalink
Merge pull request #61 from grahamc/mandatory-warn
Browse files Browse the repository at this point in the history
basic_publish: warn when using immediate and mandatory options
  • Loading branch information
Antti authored Oct 16, 2018
2 parents ba111c8 + c022fce commit 561d639
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/channel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,14 @@ impl<'a> Basic<'a> for Channel {
-> AMQPResult<()>
where S: Into<String>
{
if mandatory {
warn!("basic_publish(mandatory=true) failures are not handled and result in blocked channels!");
}

if immediate {
warn!("basic_publish(immediate=true) failures are not handled and result in blocked channels!");
}

let publish = &Publish {
ticket: 0,
exchange: exchange.into(),
Expand Down

0 comments on commit 561d639

Please sign in to comment.