Skip to content

Commit d87f64c

Browse files
committed
use exclusive instead of auto-delete for rabbitmq#6
1 parent 72daf5c commit d87f64c

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Diff for: python/rpc_client.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
class FibonacciClient(object):
66
def __init__(self):
77
self.connection = pika.AsyncoreConnection(pika.ConnectionParameters(
8-
host='127.0.0.1',
9-
credentials=pika.PlainCredentials('guest', 'guest')))
8+
host='localhost'))
9+
1010
self.channel = self.connection.channel()
1111

12-
result = self.channel.queue_declare(auto_delete=True)
12+
result = self.channel.queue_declare(exclusive=True)
1313
self.callback_queue = result.queue
1414

1515
self.requests = {}

Diff for: python/rpc_server.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33

44

55
connection = pika.AsyncoreConnection(pika.ConnectionParameters(
6-
host='127.0.0.1',
7-
credentials=pika.PlainCredentials('guest', 'guest')))
6+
host='localhost'))
7+
88
channel = connection.channel()
99

1010

0 commit comments

Comments
 (0)