Admiral-Piett / goaws

AWS (SQS/SNS) Clone for Development testing
MIT License
788 stars 146 forks source link

app/gosqs: increment number of receives for a message #241

Open vishen opened 3 years ago

vishen commented 3 years ago

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.
Admiral-Piett commented 1 year ago

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

Admiral-Piett commented 1 year ago

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

vishen commented 1 year ago

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