set up cgminer get hostname, and fixed the bug with asyncio trying to close non socket objects

This commit is contained in:
UpstreamData
2021-11-09 09:54:31 -07:00
parent 201ba6829a
commit b714dfe4a4
4 changed files with 37 additions and 18 deletions

View File

@@ -31,6 +31,7 @@ async def braiins_update():
results = await asyncio.gather(*tasks)
print(results)
async def test_command():
miner_network = MinerNetwork('192.168.1.1')
miners = await miner_network.scan_network_for_miners()
@@ -39,7 +40,5 @@ async def test_command():
print(data)
if __name__ == '__main__':
asyncio.new_event_loop().run_until_complete(test_command())