manual and explicit acks
This commit is contained in:
@@ -51,7 +51,7 @@ func (s *subscriber) SubscribeChanges(ctx context.Context, topic string) (<-chan
|
|||||||
|
|
||||||
opts := s.subscriptionOptions
|
opts := s.subscriptionOptions
|
||||||
|
|
||||||
opts = append(opts, nats.Durable(s.durableName(subject)))
|
opts = append(opts, nats.Durable(s.durableName(subject)), nats.AckExplicit(), nats.ManualAck())
|
||||||
|
|
||||||
msgCh := make(chan *changeEvent, subscriptionBufferSize)
|
msgCh := make(chan *changeEvent, subscriptionBufferSize)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user