Skip to content
Snippets Groups Projects
Unverified Commit dfe75c89 authored by Ravi Tripathi's avatar Ravi Tripathi Committed by GitHub
Browse files

Merge pull request #121 from diedpigs/revert-3cce99c7

Revert "Move disconnect to callback"
parents 246f48c9 e05538df
No related branches found
No related tags found
1 merge request!147Merge previous default branch feat-cod-rmq into main
......@@ -89,7 +89,8 @@ def worker(ch, method, properties, body):
for err in errmsg:
print(err)
rc_rmq.disconnect()
rc_rmq.stop_consume()
rc_rmq.delete_queue()
def consume(
......@@ -117,6 +118,7 @@ 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