Skip to content

Commit

Permalink
Nack if there's a header
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasjohansen committed Jul 15, 2023
1 parent 0c426b7 commit 095834a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/dispatcher/dispatcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ func getStatus(ctx context.Context, result protocol.Result) (int, bool) {

func (d *Dispatcher) dispatch(ctx context.Context, msg amqp.Delivery, ceClient cloudevents.Client) {
start := time.Now()
if _, ok := msg.Headers["knativeerrordest"]; !ok {
if _, ok := msg.Headers["knativeerrordest"]; ok {
err := msg.Nack(false, false)
if err != nil {
logging.FromContext(ctx).Warn("failed to NACK event: ", err)
Expand Down

0 comments on commit 095834a

Please sign in to comment.