From 6a2cfd836283a76a2acba4e2a39b85e8efcf7529 Mon Sep 17 00:00:00 2001 From: zayac Date: Sat, 2 Mar 2024 17:47:03 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4ip=E4=B8=BA=E5=9F=9F=E5=90=8D?= =?UTF-8?q?=E6=96=B9=E5=BC=8F=EF=BC=8C=E6=96=B9=E4=BE=BF=E6=9C=8D=E5=8A=A1?= =?UTF-8?q?=E5=99=A8=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core/message_client.py | 2 +- src/core/message_server.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/message_client.py b/src/core/message_client.py index 17c3fa3..a9f38a7 100644 --- a/src/core/message_client.py +++ b/src/core/message_client.py @@ -5,7 +5,7 @@ class MessageClient: def __init__(self): self.credentials = pika.PlainCredentials('bot', 'xiaomi@123') self.connection = pika.BlockingConnection( - pika.ConnectionParameters('45.89.233.249', 5672, '/', credentials=self.credentials)) + pika.ConnectionParameters('mq.stupidpz.com', 5672, '/', credentials=self.credentials)) self.channel = self.connection.channel() self.channel.queue_declare(queue='message_queue') diff --git a/src/core/message_server.py b/src/core/message_server.py index daec8f6..1f3f8ce 100644 --- a/src/core/message_server.py +++ b/src/core/message_server.py @@ -34,7 +34,7 @@ class MessageServer: def __init__(self): self.credentials = pika.PlainCredentials('bot', 'xiaom@i123') self.connection = pika.BlockingConnection( - pika.ConnectionParameters('45.89.233.249', 5672, '/', credentials=self.credentials)) + pika.ConnectionParameters('mq.stupidpz.com', 5672, '/', credentials=self.credentials)) self.channel = self.connection.channel() self.channel.queue_declare(queue='message_queue')