Skip to content

Commit 97cf7a0

Browse files
author
me2seeks
committed
fix(natsq): use queue stream name in jetstream consumer
1 parent d4745d5 commit 97cf7a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

natsq/consumer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ func (cm *ConsumerManager) subscribe(queue ConsumerQueue) {
133133
ctx := context.Background()
134134
if cm.mode == NatJetMode {
135135
js, _ := jetstream.New(cm.conn)
136-
stream, err := js.Stream(ctx, "ccc")
136+
stream, err := js.Stream(ctx, queue.StreamName)
137137
if err != nil {
138138
log.Fatalf("Error creating stream: %v", err)
139139
return

0 commit comments

Comments
 (0)