Skip to content

Commit 0220076

Browse files
These are all self calls
1 parent 3c74f1d commit 0220076

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

src/replit_river/v2/client_transport.py

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -181,8 +181,6 @@ async def _establish_new_connection(
181181
handshake_request,
182182
handshake_response,
183183
) = await self._establish_handshake(
184-
self._transport_id,
185-
self._server_id,
186184
session_id,
187185
uri_and_metadata["metadata"],
188186
ws,
@@ -238,8 +236,6 @@ async def _retry_connection(self) -> ClientSession:
238236

239237
async def _send_handshake_request(
240238
self,
241-
transport_id: str,
242-
to_id: str,
243239
session_id: str,
244240
handshake_metadata: HandshakeMetadataType | None,
245241
websocket: WebSocketCommonProtocol,
@@ -260,8 +256,8 @@ async def websocket_closed_callback() -> None:
260256
try:
261257
await send_transport_message(
262258
TransportMessage(
263-
from_=transport_id, # type: ignore
264-
to=to_id,
259+
from_=self.transport_id, # type: ignore
260+
to=self._server_id,
265261
streamId=stream_id,
266262
controlFlags=0,
267263
id=self.generate_nanoid(),
@@ -306,8 +302,6 @@ async def _get_handshake_response_msg(
306302

307303
async def _establish_handshake(
308304
self,
309-
transport_id: str,
310-
to_id: str,
311305
session_id: str,
312306
handshake_metadata: HandshakeMetadataType,
313307
websocket: WebSocketCommonProtocol,
@@ -332,8 +326,6 @@ async def _establish_handshake(
332326
case other:
333327
assert_never(other)
334328
handshake_request = await self._send_handshake_request(
335-
transport_id=transport_id,
336-
to_id=to_id,
337329
session_id=session_id,
338330
handshake_metadata=handshake_metadata,
339331
websocket=websocket,

0 commit comments

Comments
 (0)