def cast(conf, topic, msg): """Send a message on a topic without waiting for a response""" #with ConnectionContext(conf, connection_pool) as conn: # conn.topic_send(topic, msg) return amqp.cast(conf, topic, msg, amqp.create_connection_pool(conf, Connection))
def create_connection(conf, new=True): """Create a connection""" return amqp.create_connection( conf, new, amqp.create_connection_pool(conf, Connection))