parent
4c78d5d148
commit
f950fcd318
@ -1,9 +1,10 @@
|
||||
import os
|
||||
|
||||
import pika
|
||||
|
||||
|
||||
def get_conn_params():
|
||||
credentials = pika.PlainCredentials('guest', 'guest')
|
||||
return pika.ConnectionParameters('localhost', credentials=credentials)
|
||||
return pika.URLParameters(os.environ['SYLVILAGUS_AMQP_URI'])
|
||||
|
||||
|
||||
def get_nonblocking_channel(declare_exchange=True):
|
Loading…
Reference in new issue