Skip to content

Commit f483c4b

Browse files
committed
for #1346 message_ttl is not a queue option, used for posting
1 parent e5716f8 commit f483c4b

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

sarracenia/config/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ def __repr__(self) -> str:
176176

177177
# options that apply to queues, and so must appear before subtopic resolves queues characteristics.
178178
#
179-
queue_options = [ 'auto_delete', 'broker', 'durable', 'exchange', 'exchangeSuffix', 'expire', 'message_ttl', 'prefetch', \
179+
queue_options = [ 'auto_delete', 'broker', 'durable', 'exchange', 'exchangeSuffix', 'expire', 'prefetch', \
180180
'qos', 'queueBind', 'queueDeclare' ]
181181

182182
size_options = ['accelThreshold', 'blockSize', 'bufSize', 'byteRateMax', 'fileSizeMax', 'inlineByteMax']

sarracenia/config/subscription.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def __init__(self, options, queueName, subtopic):
1313
self['bindings'] = [ { 'exchange': options.exchange, 'prefix': options.topicPrefix, 'sub': subtopic } ]
1414

1515
self['queue']={ 'name': queueName, 'cleanup_needed': None }
16-
for a in [ 'auto_delete', 'durable', 'expire', 'message_ttl', 'prefetch', 'qos', 'queueBind', 'queueDeclare' ]:
16+
for a in [ 'auto_delete', 'durable', 'expire', 'prefetch', 'qos', 'queueBind', 'queueDeclare' ]:
1717
aa = a.replace('queue','').lower()
1818
if hasattr(options, a) and getattr(options,a):
1919
self['queue'][aa] = getattr(options,a)

sarracenia/moth/amqp.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ def _queueDeclare(self,passive=False) -> int:
284284
x = int(self.o['messageAgeMax'] * 1000)
285285
if x > 0: args['x-message-ttl'] = x
286286

287-
#FIXME: conver expire, message_ttl to proper units.
287+
#FIXME: convert expire, message_ttl to proper units.
288288
if self.o['dry_run']:
289289
logger.info('queue declare (dry run) %s (as: %s) ' %
290290
(self.o['queueName'], broker_str))

0 commit comments

Comments
 (0)