瀏覽代碼

if any peers changed from last time, we should always update the topology

Alex Cheema 7 月之前
父節點
當前提交
8aab930498
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      exo/orchestration/standard_node.py

+ 1 - 1
exo/orchestration/standard_node.py

@@ -336,7 +336,7 @@ class StandardNode(Node):
       if failed_connects: print(f"Failed to connect peers: {_pretty(failed_connects)}")
 
     self.peers = next_peers
-    return len(peers_to_connect) > 0 or len(peers_to_disconnect) > 0
+    return len(peers_added) > 0 or len(peers_removed) > 0 or len(peers_updated) > 0
 
   async def periodic_topology_collection(self, interval: int):
     while True: