change it back to collecting topology periodically even if peers dont change

This commit is contained in:
Alex Cheema
2024-12-17 17:32:18 +00:00
parent 198308b1eb
commit 7ac4004392

View File

@@ -519,8 +519,8 @@ class Node:
try:
did_peers_change = await self.update_peers()
if DEBUG >= 2: print(f"{did_peers_change=}")
await self.collect_topology(set())
if did_peers_change:
await self.collect_topology(set())
await self.select_best_inference_engine()
except Exception as e:
print(f"Error collecting topology: {e}")