Skip to content

Commit c24c993

Browse files
committed
fix: crash due to nil msg.Ctx. Fixes #177
Used the same solution as #153
1 parent 2ba5e80 commit c24c993

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

redisq/queue.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,7 @@ func (q *Queue) ReserveN(
208208
for i := range stream.Messages {
209209
xmsg := &stream.Messages[i]
210210
msg := &msgs[i]
211+
msg.Ctx = ctx
211212

212213
err = unmarshalMessage(msg, xmsg)
213214
if err != nil {

0 commit comments

Comments
 (0)