Skip to content

Commit

Permalink
[CHIA-883] Fix duplicate connection log spam. (#18268)
Browse files Browse the repository at this point in the history
* [CHIA-883] Fix duplicate connection log spam.

* Add old condition too as a safety margin.
  • Loading branch information
fchirica authored Jul 5, 2024
1 parent e6dbaef commit 25154a1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions chia/server/start_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,11 @@ async def _connect_peers_task_handler(self) -> None:

if any(connection.peer_info == resolved for connection in self._server.all_connections.values()):
continue
if any(
connection.peer_info.host == resolved.host and connection.peer_server_port == resolved.port
for connection in self._server.all_connections.values()
):
continue

if not await self._server.start_client(resolved, None):
self._log.info(f"Failed to connect to {resolved}")
Expand Down

0 comments on commit 25154a1

Please sign in to comment.