(queue, exchange, routing_key="#")
| 58 | |
| 59 | |
| 60 | def main(queue, exchange, routing_key="#"): |
| 61 | exchange = Exchange(exchange, type="topic") |
| 62 | queue = Queue( |
| 63 | name=queue, exchange=exchange, routing_key=routing_key, auto_delete=True |
| 64 | ) |
| 65 | |
| 66 | with transport_utils.get_connection() as connection: |
| 67 | connection.connect() |
| 68 | watcher = QueueConsumer(connection=connection, queue=queue) |
| 69 | watcher.run() |
| 70 | |
| 71 | |
| 72 | if __name__ == "__main__": |
no test coverage detected