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

added queuename to callback function for delete_queue

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