Skip to content

Commit

Permalink
fix: adding ctx to msg
Browse files Browse the repository at this point in the history
prevent it from crash in some cases
  • Loading branch information
lilien1010 committed Nov 18, 2021
1 parent bac023a commit 819b42b
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 @@ -403,6 +403,7 @@ func (q *Queue) schedulePending(ctx context.Context) (int, error) {

xmsg := &xmsgs[0]
msg := new(taskq.Message)
msg.Ctx = ctx
err = unmarshalMessage(msg, xmsg)
if err != nil {
return 0, err
Expand Down

0 comments on commit 819b42b

Please sign in to comment.