fixed many remaining bugs in testbench webserver, should be ready for use.

This commit is contained in:
UpstreamData
2022-04-14 18:17:23 -06:00
parent 3a560472e6
commit eb5a00b706
8 changed files with 79 additions and 45 deletions

View File

@@ -54,8 +54,8 @@ class BaseMiner:
raise e
async def send_file(self, src, dest):
conn = self._get_ssh_connection()
await asyncssh.scp((conn, src), dest)
async with (await self._get_ssh_connection()) as conn:
await asyncssh.scp(src, (conn, dest))
async def check_light(self):
return self.light