File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change 2424from pydantic import ValidationError
2525from websockets .asyncio .client import ClientConnection
2626from websockets .exceptions import ConnectionClosed , ConnectionClosedOK
27- from websockets .legacy .protocol import WebSocketCommonProtocol
2827
2928from replit_river .common_session import (
3029 SendMessage ,
@@ -523,7 +522,6 @@ def get_ws() -> ClientConnection | None:
523522 )
524523 )
525524
526-
527525 def _start_close_session_checker (self ) -> None :
528526 self ._task_manager .create_task (
529527 _check_to_close_session (
@@ -536,7 +534,6 @@ def _start_close_session_checker(self) -> None:
536534 )
537535 )
538536
539-
540537 def _start_heartbeat (self ) -> None :
541538 async def do_close_websocket () -> None :
542539 logger .debug (
@@ -889,7 +886,12 @@ async def _encode_stream() -> None:
889886 control_flags = 0 ,
890887 payload = request_serializer (item ),
891888 )
892- await self .send_close_stream (service_name , procedure_name , stream_id )
889+ await self .send_close_stream (
890+ service_name ,
891+ procedure_name ,
892+ stream_id ,
893+ extra_control_flags = 0 ,
894+ )
893895
894896 self ._task_manager .create_task (_encode_stream ())
895897
@@ -924,7 +926,7 @@ async def send_close_stream(
924926 service_name : str ,
925927 procedure_name : str ,
926928 stream_id : str ,
927- extra_control_flags : int = 0 ,
929+ extra_control_flags : int ,
928930 ) -> None :
929931 # close stream
930932 await self .send_message (
You can’t perform that action at this time.
0 commit comments