3
2
forked from Dniel97/artemis

sao: change handle_c12a to async

This commit is contained in:
Hay1tsme 2024-01-11 20:25:30 -05:00
parent df4c667adf
commit 31969221e2

View File

@ -42,7 +42,7 @@ class SaoBase:
resp = SaoGetMaintResponse(header.cmd +1)
return resp.make()
def handle_c12a(self, header: SaoRequestHeader, request: bytes) -> bytes:
async def handle_c12a(self, header: SaoRequestHeader, request: bytes) -> bytes:
#common/give_free_ticket
req = SaoGiveFreeTicketRequest(header, request)
self.logger.info(f"Give {req.give_num} free tickets (id {req.ticket_id}) to user {req.user_id}")