fixes/optimizations

This commit is contained in:
Arseniy Kuznetsov
2023-01-17 08:21:34 +01:00
parent 7b2e18b609
commit 01ded0f497
4 changed files with 8 additions and 12 deletions

View File

@@ -35,7 +35,7 @@ class CollectorHandler:
Thus, the total runtime of this function scales linearly with the number of registered routers.
"""
for router_entry in self.entries_handler.router_entries:
if not router_entry.is_connected():
if not router_entry.is_ready():
# let's pick up on things in the next run
continue
@@ -87,7 +87,7 @@ class CollectorHandler:
print(f'Hit overall timeout while scraping router entry: {router_entry.router_id[MKTXPConfigKeys.ROUTERBOARD_NAME]}')
break
if not router_entry.is_connected():
if not router_entry.is_ready():
# let's pick up on things in the next run
continue