move more code into InverterBase class
This commit is contained in:
@@ -72,8 +72,7 @@ async def webserver(addr, port):
|
||||
async def handle_client(reader: StreamReader, writer: StreamWriter, inv_class):
|
||||
'''Handles a new incoming connection and starts an async loop'''
|
||||
|
||||
addr = writer.get_extra_info('peername')
|
||||
with inv_class(reader, writer, addr) as inv:
|
||||
with inv_class(reader, writer) as inv:
|
||||
await inv.local.ifc.server_loop()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user