Skip to content

Commit

Permalink
server: fix python rpc connect
Browse files Browse the repository at this point in the history
  • Loading branch information
koush committed Mar 4, 2023
1 parent 19da688 commit 44346d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/python/plugin_remote.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ async def connectRPCObject(id: str, secret: str):
except:
writer.close()

clusterRpcServer = await asyncio.start_server(handleClusterClient, '127.0.0.1')
clusterRpcServer = await asyncio.start_server(handleClusterClient, '127.0.0.1', 0)
clusterPort = clusterRpcServer.sockets[0].getsockname()[1]

clusterPeers: Mapping[int, asyncio.Future[rpc.RpcPeer]] = {}
Expand Down Expand Up @@ -330,7 +330,7 @@ def onProxySerialization(value: Any, proxyId: str):
if not properties or not properties.get('__cluster', None):
properties = properties or {}
properties['__cluster'] = {
'clusterId': clusterId,
'id': clusterId,
'proxyId': proxyId,
'port': clusterPort,
}
Expand Down

0 comments on commit 44346d5

Please sign in to comment.