mirror of
https://github.com/exo-explore/exo.git
synced 2025-10-23 02:57:14 +03:00
Only collect topology if peers changed
This commit is contained in:
@@ -541,8 +541,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}")
|
||||
|
||||
Reference in New Issue
Block a user