SQS: batch mode always consumes messages. Closes

This commit is contained in:
Ask Solem 2014-01-28 16:22:57 +00:00
parent 24e7e34782
commit 8dfc24453c
1 changed files with 1 additions and 7 deletions
kombu/transport/virtual

View File

@ -142,14 +142,8 @@ class QoS(object):
An integer > 0
"""
pcount = self.prefetch_count
count = None
if pcount:
count = pcount - (len(self._delivered) - len(self._dirty))
if count < 1:
return 1
return count
return max(pcount - (len(self._delivered) - len(self._dirty), 0)
def append(self, message, delivery_tag):
"""Append message to transactional state."""