Skip to content

Commit 8a4fc06

Browse files
committed
2 parents fd3d84d + 9f49192 commit 8a4fc06

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

utils/message_brokers.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ def receive_message(self) -> list[dict]:
140140
# Check if connection to RabbitMQ is open, if not, reconnect
141141
if not self.connection.is_open:
142142
print("Connection to RabbitMQ is not open")
143-
self.Connect()
143+
self.connect()
144144

145145
# Check if readChannel is closed, if yes, reinitialize
146146
if self.readChannel.is_closed:
@@ -177,7 +177,7 @@ def send_message(self, message: str):
177177
# Handle connection and channel closure exceptions
178178
except pika.exceptions.ConnectionClosed:
179179
print('Reconnecting to queue')
180-
self.Connect()
180+
self.connect()
181181
self.publishChannel.basic_publish(
182182
exchange=self.exchange, routing_key=self.target_queue_name, body=message)
183183
except pika.exceptions.ChannelClosed:

0 commit comments

Comments
 (0)