[router][grpc] Fix request_id extraction when n > 1 (#11311)
This commit is contained in:
@@ -263,8 +263,8 @@ class GrpcRequestManager:
|
|||||||
response = await task
|
response = await task
|
||||||
|
|
||||||
# Add index for client-side ordering
|
# Add index for client-side ordering
|
||||||
if isinstance(response, dict) and "meta_info" in response:
|
if isinstance(response, dict):
|
||||||
response_rid = response["meta_info"].get("id", "")
|
response_rid = response.get("request_id", "")
|
||||||
if response_rid in rid_to_index:
|
if response_rid in rid_to_index:
|
||||||
response["index"] = rid_to_index[response_rid]
|
response["index"] = rid_to_index[response_rid]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user