Merge branch 'nitzanm/master'

This commit is contained in:
Ask Solem 2012-01-10 15:50:31 +00:00
commit 88990cea4e
1 changed files with 5 additions and 0 deletions

View File

@ -158,6 +158,7 @@ class Channel(virtual.Channel):
def _new_queue(self, queue, **kwargs):
"""Ensures a queue exists in SQS."""
queue = self.queue_name_prefix + queue
try:
return self._queue_cache[queue]
except KeyError:
@ -322,6 +323,10 @@ class Channel(virtual.Channel):
@cached_property
def visibility_timeout(self):
return self.transport_options.get("visibility_timeout")
@cached_property
def queue_name_prefix(self):
return self.transport_options.get("queue_name_prefix", '')
@cached_property
def supports_fanout(self):