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
committed by UpstreamData
parent 93f2990399
commit a6df7a83d6
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