Skip to content

Commit

Permalink
new message broker ip
Browse files Browse the repository at this point in the history
  • Loading branch information
newtondotcom committed Jan 5, 2024
1 parent 78c3da4 commit e6157f0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion fakerabbitmq/receiver.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
print(' Connecting to server ...')

try:
connection = pika.BlockingConnection(pika.ConnectionParameters(host="141.145.217.120",port=5672))
connection = pika.BlockingConnection(pika.ConnectionParameters(host="144.91.123.186",port=15672))
except pika.exceptions.AMQPConnectionError as exc:
print("Failed to connect to RabbitMQ service. Message wont be sent.")
exit()
Expand Down
2 changes: 1 addition & 1 deletion fakerabbitmq/sender.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
print(' Connecting to server ...')

try:
connection = pika.BlockingConnection(pika.ConnectionParameters(host="141.145.217.120",port=5672))
connection = pika.BlockingConnection(pika.ConnectionParameters(host="144.91.123.186",port=15672))
except pika.exceptions.AMQPConnectionError as exc:
print("Failed to connect to RabbitMQ service. Message wont be sent.")
exit()
Expand Down
2 changes: 1 addition & 1 deletion fakerabbitmq/serverjs/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const amqp = require('amqplib');

const rabbitMQUrl = 'amqp://141.145.217.120:5672';
const rabbitMQUrl = 'amqp://144.91.123.186:15672';
const exchange = 'tasks';
const workerQueue = 'task_queue';

Expand Down

0 comments on commit e6157f0

Please sign in to comment.