Browse Source

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

Alex Cheema 9 months ago
parent
commit
8aab930498
1 changed files with 1 additions and 1 deletions
  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: