Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 0 additions & 16 deletions meemoo/events.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
#

# System imports
import os

# Third-party imports
import pika
Expand All @@ -31,7 +30,6 @@ def __init__(self, queue_info, ctx):
self.credentials = self._init_credentials()
self.connection = self._init_connection()
self.channel = self._init_channel()
self._declare_queue()

def _init_credentials(self):
""""""
Expand All @@ -55,20 +53,6 @@ def _init_channel(self):
channel.basic_qos(prefetch_count=1)
return channel

def _declare_queue(self):
self.channel.queue_declare(queue=self.queue, durable=True)

if self.exchange:
self.channel.exchange_declare(
exchange=self.exchange, exchange_type="direct"
)
self.channel.queue_bind(
exchange=self.exchange, queue=self.queue, routing_key=self.queue
)

# Turn on delivery confirmations if need be
# ~ channel.confirm_delivery()

def basic_consume(self):
return self.channel.basic_consume(
queue=self.queue,
Expand Down