Skip to content

Commit

Permalink
Fixing issue with RetryHandler
Browse files Browse the repository at this point in the history
Signed-off-by: Dusan Malusev <dusan@dusanmalusev.dev>
  • Loading branch information
CodeLieutenant committed Jun 11, 2024
1 parent 031c76a commit e7db2b9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions consumer/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ func (h retryHandler[T]) retry(err error, delivery *amqp091.Delivery) error {
_, ok := delivery.Headers[retryHeader]

if !ok {
delivery.Headers = make(amqp091.Table)
delivery.Headers[retryHeader] = int64(h.retryCount)
}

Expand Down

0 comments on commit e7db2b9

Please sign in to comment.