goaws
goaws copied to clipboard
app/gosqs: increment number of receives for a message
When returning an SQS message, increment the 'NumberOfReceives' so it always contains the number of times a message has been received but not yet deleted.
From the AWS SQS docs:
ApproximateReceiveCount – Returns the number of times a message has been received across all queues but not deleted.
@vishen Sorry it's been such a long time - this looks great to me. Mind throwing a test in here for it?
@vishen Following up here - if you don't want to mess with this anymore (understandable) I'll branch off this, write some tests and merge that instead. Let me know! I appreciate the effort!
Apologies @Admiral-Piett , I don't have the time anymore to add the tests. If you have time to add them that would be amazing :)