We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0d6f2c0 commit 3dccfc5Copy full SHA for 3dccfc5
src/replit_river/server_transport.py
@@ -236,9 +236,7 @@ async def _establish_handshake(
236
client_next_expected_seq = (
237
handshake_request.expectedSessionState.nextExpectedSeq
238
)
239
- client_next_sent_seq = (
240
- handshake_request.expectedSessionState.nextSentSeq or 0
241
- )
+ client_next_sent_seq = handshake_request.expectedSessionState.nextSentSeq or 0
242
if old_session and old_session.session_id == handshake_request.sessionId:
243
# check invariants
244
# ordering must be correct
@@ -275,7 +273,6 @@ async def _establish_handshake(
275
273
await old_session.close()
276
274
old_session = None
277
278
-
279
if not old_session and (
280
client_next_sent_seq > 0 or client_next_expected_seq > 0
281
):
0 commit comments