[jetstream] Fix setting omitted QueueGroupName on ConsumerConfig (#2835)

Signed-off-by: Byron Ruth <byron@nats.io>
This commit is contained in:
Byron Ruth 2023-05-16 20:56:18 -04:00 committed by GitHub
parent 58dbcf92ad
commit d2cad27b3f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -153,6 +153,9 @@ func (js *jetstreamPubSub) Subscribe(ctx context.Context, req pubsub.SubscribeRe
if v := js.meta.DurableName; v != "" {
consumerConfig.Durable = v
}
if v := js.meta.QueueGroupName; v != "" {
consumerConfig.DeliverGroup = v
}
if v := js.meta.internalStartTime; !v.IsZero() {
consumerConfig.OptStartTime = &v