diff --git a/rc_util.py b/rc_util.py index 78a18372fa3fffd79938cc5c99f3d8cbdfee58f7..a3536862f364b9fc6b19e1a95583400bcaa16dc5 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: