Skip to content
Snippets Groups Projects
Commit eb69c34f authored by Alexander Polcyn's avatar Alexander Polcyn
Browse files

attach trailing metadata to ruby bidi call op when it's received

parent b4c27c1c
No related branches found
No related tags found
No related merge requests found
...@@ -200,6 +200,7 @@ module GRPC ...@@ -200,6 +200,7 @@ module GRPC
if is_client if is_client
batch_result = @call.run_batch(RECV_STATUS_ON_CLIENT => nil) batch_result = @call.run_batch(RECV_STATUS_ON_CLIENT => nil)
@call.status = batch_result.status @call.status = batch_result.status
@call.trailing_metadata = @call.status.metadata if @call.status
batch_result.check_status batch_result.check_status
GRPC.logger.debug("bidi-read-loop: done status #{@call.status}") GRPC.logger.debug("bidi-read-loop: done status #{@call.status}")
end end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment