SQS Transport: Fix for KeyError on message acknowledgment-- (#73)

Avoids duplicate keys on message delivery tags by using UUIds instead
of a simple counter.

Closes #73
This commit is contained in:
Brian Bernstein 2011-10-26 14:09:55 -04:00 committed by Ask Solem
parent d44e2a26f2
commit 25993c9e0a
1 changed files with 3 additions and 0 deletions

View File

@ -285,6 +285,9 @@ class Channel(virtual.Channel):
aws_secret_access_key=conninfo.password,
port=conninfo.port)
def _next_delivery_tag(self):
return uuid() # See #73
@property
def sqs(self):
if self._sqs is None: