Set pika version to ~1.1.0 to prevent api updates from breaking code.
Updated message_listener for new version.
This commit is contained in:
parent
4a45225369
commit
a643883d06
|
@ -112,8 +112,7 @@ class MessageListener:
|
|||
self._channel.queue_bind(exchange=EXCHANGE, queue=QUEUE, routing_key=ROUTING_KEY)
|
||||
|
||||
logging.info(" Listening for messages...")
|
||||
self._channel.basic_consume(self.msg_received_callback,
|
||||
queue=QUEUE, no_ack=False)
|
||||
self._channel.basic_consume(QUEUE, self.msg_received_callback, auto_ack=False)
|
||||
|
||||
def wait_for_messages(self):
|
||||
'''Wait until we've received a RabbitMQ message.'''
|
||||
|
|
|
@ -30,7 +30,7 @@ setup(name='airtime_analyzer',
|
|||
scripts=['bin/airtime_analyzer'],
|
||||
install_requires=[
|
||||
'mutagen>=1.41.1', # got rid of specific version requirement
|
||||
'pika',
|
||||
'pika~=1.1.0',
|
||||
'file-magic',
|
||||
'nose',
|
||||
'coverage',
|
||||
|
|
Loading…
Reference in New Issue