Admiral-Piett / goaws

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

Redrive policy MaxReceive logic is off by one #263

Open qhenkart opened 1 year 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.