File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 5
5
class FibonacciClient (object ):
6
6
def __init__ (self ):
7
7
self .connection = pika .AsyncoreConnection (pika .ConnectionParameters (
8
- host = '127.0.0.1' ,
9
- credentials = pika . PlainCredentials ( 'guest' , 'guest' )))
8
+ host = 'localhost' ))
9
+
10
10
self .channel = self .connection .channel ()
11
11
12
- result = self .channel .queue_declare (auto_delete = True )
12
+ result = self .channel .queue_declare (exclusive = True )
13
13
self .callback_queue = result .queue
14
14
15
15
self .requests = {}
Original file line number Diff line number Diff line change 3
3
4
4
5
5
connection = pika .AsyncoreConnection (pika .ConnectionParameters (
6
- host = '127.0.0.1' ,
7
- credentials = pika . PlainCredentials ( 'guest' , 'guest' )))
6
+ host = 'localhost' ))
7
+
8
8
channel = connection .channel ()
9
9
10
10
You can’t perform that action at this time.
0 commit comments