updated some comments and improved general readability

This commit is contained in:
UpstreamData
2021-11-03 14:45:31 -06:00
parent e7ea0629a4
commit da8d45a9b1
3 changed files with 9 additions and 3 deletions

View File

@@ -40,6 +40,7 @@ class MinerFactory:
async def _get_version_data(ip: ipaddress.ip_address) -> dict or None:
for i in range(3):
try:
# open a connection to the miner
fut = asyncio.open_connection(str(ip), 4028)
# get reader and writer streams
reader, writer = await asyncio.wait_for(fut, timeout=5)