set up cgminer get hostname, and fixed the bug with asyncio trying to close non socket objects
This commit is contained in:
3
main.py
3
main.py
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user