mirror of
https://github.com/exo-explore/exo.git
synced 2025-10-23 02:57:14 +03:00
patch for manual discovery, set known_peers
This commit is contained in:
@@ -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()]}")
|
||||
|
||||
Reference in New Issue
Block a user