소스 검색

Only collect topology if peers changed

Nel Nibcord 8 달 전
부모
커밋
08912d1b64
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      exo/orchestration/node.py

+ 1 - 1
exo/orchestration/node.py

@@ -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}")