From b2f3a021348a899a84d6b3cefdfeb798bb09e7ee Mon Sep 17 00:00:00 2001 From: Eric Richardson Date: Wed, 20 Apr 2016 13:40:03 -0400 Subject: Allow `peer` and `peer_cert` to be used from ActiveCall::SingleReqView --- src/ruby/lib/grpc/generic/active_call.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ruby') 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. -- cgit v1.2.3