Skip to content

Commit

Permalink
Forgot the status code
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasjohansen committed Jul 10, 2023
1 parent 30fdc1b commit 0c426b7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/dispatcher/dispatcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@ func (d *Dispatcher) dispatch(ctx context.Context, msg amqp.Delivery, ceClient c
if !isSuccess {
logging.FromContext(ctx).Warnf("Failed to deliver to %q", d.SubscriberURL)
msg.Headers["knativeerrordest"] = d.SubscriberURL
msg.Headers["knativeerrorcode"] = statusCode
if err = msg.Nack(false, true); err != nil {
logging.FromContext(ctx).Warn("failed to NACK event: ", err)
}
Expand Down

0 comments on commit 0c426b7

Please sign in to comment.