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
No related merge requests found
...@@ -47,8 +47,7 @@ def worker(ch, method, properties, body): ...@@ -47,8 +47,7 @@ def worker(ch, method, properties, body):
for err in errmsg: for err in errmsg:
print(err) print(err)
rc_rmq.stop_consume() rc_rmq.disconnect()
rc_rmq.delete_queue()
def consume( def consume(
...@@ -76,7 +75,6 @@ def consume( ...@@ -76,7 +75,6 @@ def consume(
"cb": callback, "cb": callback,
} }
) )
rc_rmq.disconnect()
return {"success": True} 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