Include requeue=False when rejecting a message

This commit is contained in:
David Gelvin 2010-10-05 20:13:57 +03:00
parent 0cd4e6832f
commit 0e35cec74f
1 changed files with 1 additions and 1 deletions

View File

@ -74,7 +74,7 @@ class Message(object):
if self.acknowledged:
raise self.MessageStateError(
"Message already acknowledged with state: %s" % self._state)
self.channel.basic_reject(self.delivery_tag)
self.channel.basic_reject(self.delivery_tag, requeue=False)
self._state = "REJECTED"
def requeue(self):