Skip to content

Commit

Permalink
Merge pull request #184 from kd7lxl/fix-nil-ctx
Browse files Browse the repository at this point in the history
fix crash due to nil msg.Ctx. Fixes #177
  • Loading branch information
lilien1010 authored Dec 6, 2022
2 parents 2ba5e80 + c24c993 commit 2956d04
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 2956d04

Please sign in to comment.