Browse Source

Merge pull request #666 from exo-explore/patchmanualdiscovery

patch for manual discovery, set known_peers
Alex Cheema 4 months ago
parent
commit
1a77a52d71
1 changed files with 1 additions and 0 deletions
  1. 1 0
      exo/networking/manual/manual_discovery.py

+ 1 - 0
exo/networking/manual/manual_discovery.py

@@ -63,6 +63,7 @@ class ManualDiscovery(Discovery):
             print(f"{peer_id=} at {peer_config.address}:{peer_config.port} is not healthy. Removing.")
         except Exception as e:
           if DEBUG_DISCOVERY >= 2: print(f"Exception occurred when attempting to add {peer_id=}: {e}")
+      self.known_peers = new_known_peers
       await asyncio.sleep(5.0)
 
       if DEBUG_DISCOVERY >= 2: print(f"Current known peers: {[peer.id() for peer in self.known_peers.values()]}")