goaws icon indicating copy to clipboard operation
goaws copied to clipboard

app/gosqs: increment number of receives for a message

Open vishen opened this issue 3 years ago • 3 comments

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 avatar Nov 25 '21 05:11 vishen

@vishen Sorry it's been such a long time - this looks great to me. Mind throwing a test in here for it?

Admiral-Piett avatar Mar 08 '23 03:03 Admiral-Piett

@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!

Admiral-Piett avatar Nov 11 '23 21:11 Admiral-Piett

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 :)

vishen avatar Nov 14 '23 20:11 vishen