Skip to content

Commit

Permalink
fix: use no ack policy for jetstream consumers
Browse files Browse the repository at this point in the history
  • Loading branch information
palkan committed Nov 1, 2023
1 parent c8b0c4e commit bf54537
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion broker/nats.go
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ func (n *NATS) addStreamConsumer(stream string) {

n.jconsumers.fetch(stream, func() (jetstream.Consumer, error) { // nolint:errcheck
cons, err := n.js.CreateConsumer(context.Background(), prefixedStream, jetstream.ConsumerConfig{
AckPolicy: jetstream.AckExplicitPolicy,
AckPolicy: jetstream.AckNonePolicy,
})

if err != nil {
Expand Down

0 comments on commit bf54537

Please sign in to comment.