Skip to content

Commit

Permalink
fix: crash due to nil msg.Ctx. Fixes #177
Browse files Browse the repository at this point in the history
Used the same solution as #153
  • Loading branch information
kd7lxl committed Oct 12, 2022
1 parent 2ba5e80 commit c24c993
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions redisq/queue.go
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@ func (q *Queue) ReserveN(
for i := range stream.Messages {
xmsg := &stream.Messages[i]
msg := &msgs[i]
msg.Ctx = ctx

err = unmarshalMessage(msg, xmsg)
if err != nil {
Expand Down

0 comments on commit c24c993

Please sign in to comment.