chore: Get rid of all __await__ methods

This commit is contained in:
2023-11-16 05:40:08 +01:00
parent b30603a190
commit f2a54b5ce6
3 changed files with 17 additions and 12 deletions

View File

@@ -47,9 +47,13 @@ class MuxRPCRequestHandler(MuxRPCHandler):
def __init__(self, ps_handler):
self.ps_handler = ps_handler
def __await__(self):
msg = yield from self.ps_handler.__await__()
async def get_response(self):
"""Get the response data"""
msg = await self.ps_handler
self.check_message(msg)
return msg