Skip to content
Snippets Groups Projects
Commit 155e8c46 authored by Krish Moodbidri's avatar Krish Moodbidri
Browse files

added queuename to callback function for delete_queue

parent 5a73c133
No related branches found
No related tags found
1 merge request!21Feat certify account
......@@ -39,6 +39,7 @@ def certify_gen_f(room):
def callback(channel, method, properties, body):
msg = json.loads(body)
username = msg['username']
queuename = msg['username']
if msg['success']:
print(f'Account for {username} has been certified.')
......@@ -51,7 +52,7 @@ def certify_gen_f(room):
socketio.emit('certify error', errmsg, room= room)
rc_util.rc_rmq.stop_consume()
rc_util.rc_rmq.delete_queue()
rc_util.rc_rmq.delete_queue(queuename)
return callback
def send_msg(event, room):
......
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