Ver Fonte

patch for manual discovery, set known_peers

Alex Cheema há 7 meses atrás
pai
commit
72329ba984
1 ficheiros alterados com 1 adições e 0 exclusões
  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()]}")