fix the thing

This commit is contained in:
Luna Mendes 2017-12-03 16:36:36 -03:00
parent e7345520a8
commit 0a8194b941

View file

@ -73,7 +73,7 @@ async def send_msg(writer, op: int, data: str):
log.info('[send] %d, %s -> %r', op, data, msg) log.info('[send] %d, %s -> %r', op, data, msg)
writer.write(msg) writer.write(msg)
asyncio.get_event_loop.create_task(writer.drain()) asyncio.get_event_loop().create_task(writer.drain())
async def process(reader, writer, op: int, message: str): async def process(reader, writer, op: int, message: str):