Skip to content

Commit

Permalink
Merge 5046e70 into 8630b7d
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrpio committed Dec 30, 2022
2 parents 8630b7d + 5046e70 commit b1f792e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jsm.go
Expand Up @@ -310,7 +310,7 @@ func (js *js) AddConsumer(stream string, cfg *ConsumerConfig, opts ...JSOpt) (*C
consumerName = cfg.Durable
}
if consumerName != _EMPTY_ {
consInfo, err := js.ConsumerInfo(stream, consumerName)
consInfo, err := js.ConsumerInfo(stream, consumerName, opts...)
if err != nil && !errors.Is(err, ErrConsumerNotFound) && !errors.Is(err, ErrStreamNotFound) {
return nil, err
}
Expand Down

0 comments on commit b1f792e

Please sign in to comment.