Admiral-Piett / goaws

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

Redrive policy MaxReceive logic is off by one #263

Closed qhenkart closed 2 weeks ago

qhenkart commented 1 year ago

in AWS, setting MaxReceives to 3 means that the message is processed exactly 3 times before being sent to the DLQ.

With this library, I think it counts the first run as 0 instead of 1, meaning that it gets processed 4 times before sending to the DLQ.