From c99e1303f0f1545a42d6a4dc5745a714db6d6868 Mon Sep 17 00:00:00 2001 From: "Bo-Chun Louis Chen(VM)" <louistw@uab.edu> Date: Mon, 23 Mar 2020 19:26:20 +0000 Subject: [PATCH] Set default callback for rc_util.consume --- rc_util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rc_util.py b/rc_util.py index 78a1837..a353686 100644 --- a/rc_util.py +++ b/rc_util.py @@ -30,7 +30,7 @@ def worker(ch, method, properties, body): rc_rmq.stop_consume() rc_rmq.delete_queue() -def consume(username, callback, debug=False): +def consume(username, callback=worker, debug=False): if debug: sleep(5) else: -- GitLab