File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 3838from replit_river .transport_options import MAX_MESSAGE_BUFFER_SIZE , TransportOptions
3939
4040
41+ STREAM_CANCEL_BIT = 0b00100 # Synonymous with the cancel bit in v2
4142STREAM_CLOSED_BIT = 0b01000 # Synonymous with the cancel bit in v2
4243
4344
@@ -208,11 +209,10 @@ async def send_rpc[R, A](
208209 async with asyncio .timeout (timeout .total_seconds ()):
209210 response = await output .get ()
210211 except asyncio .TimeoutError as e :
211- # TODO(dstewart) After protocol v2, change this to STREAM_CANCEL_BIT
212212 await self .send_message (
213213 stream_id = stream_id ,
214- control_flags = STREAM_CLOSED_BIT ,
215- payload = {"type" : "CLOSE " },
214+ control_flags = STREAM_CANCEL_BIT ,
215+ payload = {"type" : "CANCEL " },
216216 service_name = service_name ,
217217 procedure_name = procedure_name ,
218218 span = span ,
You can’t perform that action at this time.
0 commit comments