调整ip为域名方式,方便服务器调整
This commit is contained in:
parent
bd15885e72
commit
6a2cfd8362
@ -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')
|
||||
|
||||
|
@ -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')
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user