Skip to content

Commit 757c73a

Browse files
committed
Send group name as arg
1 parent 27bc0fd commit 757c73a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

backend/redis/queue.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ func newTaskQueue[T any](rdb redis.UniversalClient, keyPrefix string, tasktype s
6464
}
6565

6666
// Create the consumer group
67-
err := createGroupCmd.Run(context.Background(), rdb, []string{tq.streamKey, tq.groupName}).Err()
67+
err := createGroupCmd.Run(context.Background(), rdb, []string{tq.streamKey}, tq.groupName).Err()
6868
if err != nil {
6969
return nil, fmt.Errorf("creating task queue: %w", err)
7070
}
@@ -99,7 +99,7 @@ var enqueueCmd = redis.NewScript(
9999

100100
var createGroupCmd = redis.NewScript(`
101101
local streamKey = KEYS[1]
102-
local groupName = KEYS[2]
102+
local groupName = ARGV[1]
103103
local exists = false
104104
local res = redis.pcall('XINFO', 'GROUPS', streamKey)
105105

0 commit comments

Comments
 (0)