Skip to content

Commit

Permalink
Fix job poller to use receiptHandle
Browse files Browse the repository at this point in the history
  • Loading branch information
onee-only committed Jul 16, 2024
1 parent 0b49ef9 commit be851d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/job/poller.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ func (p *poller) Poll(ctx context.Context) (id string, job Job, err error) {
return "", Job{}, errors.Wrap(err, "failed to unmarshal job")
}

return *msg.MessageId, decoded, nil
return *msg.ReceiptHandle, decoded, nil
}

func (p *poller) MarkAsDone(ctx context.Context, id string) (err error) {
Expand Down

0 comments on commit be851d8

Please sign in to comment.