aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar apolcyn <apolcyn@google.com>2017-01-04 12:52:39 -0800
committerGravatar GitHub <noreply@github.com>2017-01-04 12:52:39 -0800
commit38642fa924b84e3f8554bb523715c3abd945cecf (patch)
treefd6c48311d87c294d206218b8c5f489a45e2431a
parent3adfa82dc41cf8c3b9896714053797e8e8cbcd24 (diff)
parenteb69c34f8345a8777c894b35a4211caed20132a4 (diff)
Merge pull request #9183 from apolcyn/attach_trailing_md_ruby_bidi
attach trailing metadata to ruby bidi call op when it's received
-rw-r--r--src/ruby/lib/grpc/generic/bidi_call.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ruby/lib/grpc/generic/bidi_call.rb b/src/ruby/lib/grpc/generic/bidi_call.rb
index 8943f3f1fe..adc77bbf5d 100644
--- a/src/ruby/lib/grpc/generic/bidi_call.rb
+++ b/src/ruby/lib/grpc/generic/bidi_call.rb
@@ -200,6 +200,7 @@ module GRPC
if is_client
batch_result = @call.run_batch(RECV_STATUS_ON_CLIENT => nil)
@call.status = batch_result.status
+ @call.trailing_metadata = @call.status.metadata if @call.status
batch_result.check_status
GRPC.logger.debug("bidi-read-loop: done status #{@call.status}")
end