cloudevents / sdk-go

Go SDK for CloudEvents
https://cloudevents.github.io/sdk-go/
Apache License 2.0
835 stars 220 forks source link

add explicit ack/nak for nats jetstream #1073

Closed stephen-totty-hpe closed 1 month ago

stephen-totty-hpe commented 4 months ago

In some cases, it is necessary to control manual ACK/NCK based on the existance of errors. It is ok to ACK/NCK even if the message has already been committed. In that case, the ACK/NCK is short-circuited.