Skip to content

Commit

Permalink
channel: account for confirm_select when restoring topology
Browse files Browse the repository at this point in the history
  • Loading branch information
Keruspe committed Aug 29, 2024
1 parent 1d7d58b commit bb0ba23
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/channel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,12 @@ impl Channel {
ch: &ChannelDefinitionInternal,
c: &mut RestoredChannel,
) -> Result<()> {
if let Some(channel) = ch.channel.as_ref() {
if channel.status.confirm() {
c.confirm_select(ConfirmSelectOptions::default()).await?;
}
}

// First, redeclare all queues
for queue in &ch.queues {
if queue.is_declared() {
Expand Down

0 comments on commit bb0ba23

Please sign in to comment.