调整ip为域名方式,方便服务器调整

This commit is contained in:
zayac 2024-03-02 17:47:03 +08:00
parent bd15885e72
commit 6a2cfd8362
2 changed files with 2 additions and 2 deletions

View File

@ -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')

View File

@ -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')