Skip to content

Commit

Permalink
Turning of batching for incoming amqp messages to gain faster feedbac…
Browse files Browse the repository at this point in the history
…k to the sender
  • Loading branch information
vipeller committed Apr 1, 2021
1 parent 028e4a0 commit d13f7cd
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,12 +85,12 @@ internal async Task ProcessMessageAsync(AmqpMessage amqpMessage)
try
{
await this.OnMessageReceived(amqpMessage);
((IReceivingAmqpLink)this.Link).DisposeMessage(amqpMessage, AmqpConstants.AcceptedOutcome, true, true);
((IReceivingAmqpLink)this.Link).DisposeMessage(amqpMessage, AmqpConstants.AcceptedOutcome, true, false);
}
catch (Exception e) when (!e.IsFatal())
{
Events.ErrorProcessingMessage(e, this);
((IReceivingAmqpLink)this.Link).DisposeMessage(amqpMessage, AmqpConstants.RejectedOutcome, true, true);
((IReceivingAmqpLink)this.Link).DisposeMessage(amqpMessage, AmqpConstants.RejectedOutcome, true, false);
}
finally
{
Expand Down

0 comments on commit d13f7cd

Please sign in to comment.