Skip to content

Commit

Permalink
bump up pika version
Browse files Browse the repository at this point in the history
  • Loading branch information
marionleborgne committed Oct 8, 2017
1 parent d14dc8a commit 9096938
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion requirements/core.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
simplejson==3.8.2
pika==0.10
pika==0.11.0
requests[security]==2.18.1
pyserial==2.7
2 changes: 1 addition & 1 deletion src/cloudbrain/publishers/rabbitmq.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def register(self, metric_name, num_channels, buffer_size=1):

def _rabbitmq_register(self, routing_key):
channel = self.connection.channel()
channel.exchange_declare(exchange=routing_key, type='direct')
channel.exchange_declare(exchange=routing_key, exchange_type='direct')
self.channels[routing_key] = channel

def publish(self, metric_name, data):
Expand Down
2 changes: 1 addition & 1 deletion src/cloudbrain/subscribers/rabbitmq.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def register(self, metric_name, num_channels, buffer_size=1):

def _rabbitmq_register(self, routing_key):
channel = self.connection.channel()
channel.exchange_declare(exchange=routing_key, type='direct')
channel.exchange_declare(exchange=routing_key, exchange_type='direct')

queue_name = channel.queue_declare(exclusive=True).method.queue
channel.queue_bind(exchange=routing_key,
Expand Down

0 comments on commit 9096938

Please sign in to comment.