aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ruby/lib
diff options
context:
space:
mode:
authorGravatar Eric Richardson <ewr@squareup.com>2016-04-20 13:40:03 -0400
committerGravatar Eric Richardson <ewr@squareup.com>2016-04-20 13:40:03 -0400
commitb2f3a021348a899a84d6b3cefdfeb798bb09e7ee (patch)
tree104ff280d51f4dfe1c2a400a95e5011761136bb3 /src/ruby/lib
parent69d735a2938579f8e32e20e8fe90efe0cf6f5e57 (diff)
Allow `peer` and `peer_cert` to be used from ActiveCall::SingleReqView
Diffstat (limited to 'src/ruby/lib')
-rw-r--r--src/ruby/lib/grpc/generic/active_call.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ruby/lib/grpc/generic/active_call.rb b/src/ruby/lib/grpc/generic/active_call.rb
index e80d24edc9..4bc95dd78a 100644
--- a/src/ruby/lib/grpc/generic/active_call.rb
+++ b/src/ruby/lib/grpc/generic/active_call.rb
@@ -59,7 +59,7 @@ module GRPC
include Core::CallOps
extend Forwardable
attr_reader(:deadline)
- def_delegators :@call, :cancel, :metadata, :write_flag, :write_flag=
+ def_delegators :@call, :cancel, :metadata, :write_flag, :write_flag=, :peer, :peer_cert
# client_invoke begins a client invocation.
#
@@ -472,7 +472,7 @@ module GRPC
# SingleReqView limits access to an ActiveCall's methods for use in server
# handlers that receive just one request.
SingleReqView = view_class(:cancelled, :deadline, :metadata,
- :output_metadata)
+ :output_metadata, :peer, :peer_cert)
# MultiReqView limits access to an ActiveCall's methods for use in
# server client_streamer handlers.