Skip to content

Commit

Permalink
editoast: don't ack response messages
Browse files Browse the repository at this point in the history
We must use auto-ack when using direct reply-to

https://www.rabbitmq.com/docs/direct-reply-to#limitations
  • Loading branch information
Khoyo committed Jul 17, 2024
1 parent 668e6f4 commit fc9a1f2
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions editoast/src/core/mq_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -205,12 +205,6 @@ impl RabbitMQClient {
.map_err(|_| Error::ResponseTimeout)?;

if let Some(Ok(delivery)) = response_delivery {
// Acknowledge the message
delivery
.ack(BasicAckOptions::default())
.await
.map_err(Error::Lapin)?;

// Deserialize the response
// let payload =
// TR::from_bytes(&delivery.data).map_err(|e| Error::DeserialisationError(e))?;
Expand Down

0 comments on commit fc9a1f2

Please sign in to comment.