Ver Fonte

only collect topology when peers changed

Alex Cheema há 8 meses atrás
pai
commit
f8d195eea5
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      exo/orchestration/standard_node.py

+ 1 - 1
exo/orchestration/standard_node.py

@@ -374,8 +374,8 @@ class StandardNode(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}")