From be851d881f423c31dbb9387935718ceb500532dd Mon Sep 17 00:00:00 2001 From: onee-only Date: Tue, 16 Jul 2024 13:31:59 +0900 Subject: [PATCH] Fix job poller to use receiptHandle --- internal/job/poller.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/job/poller.go b/internal/job/poller.go index 25f4c53..f0a3d7f 100644 --- a/internal/job/poller.go +++ b/internal/job/poller.go @@ -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) {