Skip to content
Snippets Groups Projects
Commit 3cce99c7 authored by Bo-Chun Chen's avatar Bo-Chun Chen
Browse files

Move disconnect to callback

parent 206f691d
No related branches found
No related tags found
1 merge request!116Update code regarding rcrmq class change
......@@ -47,8 +47,7 @@ def worker(ch, method, properties, body):
for err in errmsg:
print(err)
rc_rmq.stop_consume()
rc_rmq.delete_queue()
rc_rmq.disconnect()
def consume(
......@@ -76,7 +75,6 @@ def consume(
"cb": callback,
}
)
rc_rmq.disconnect()
return {"success": True}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment