Skip to content

Commit

Permalink
Fix release/reject
Browse files Browse the repository at this point in the history
  • Loading branch information
mkuratczyk committed Sep 2, 2024
1 parent b202cae commit c92253f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/amqp10_client/consumer.go
Original file line number Diff line number Diff line change
Expand Up @@ -174,9 +174,9 @@ func (c *Amqp10Consumer) Start(ctx context.Context, subscribed chan bool) {
case "accept":
err = c.Receiver.AcceptMessage(ctx, msg)
case "release":
err = c.Receiver.RejectMessage(ctx, msg, nil)
case "reject":
err = c.Receiver.ReleaseMessage(ctx, msg)
case "reject":
err = c.Receiver.RejectMessage(ctx, msg, nil)
}
if err != nil {
if err == context.Canceled {
Expand Down

0 comments on commit c92253f

Please sign in to comment.