Allow `peer` and `peer_cert` to be used from ActiveCall::SingleReqView

pull/6233/head
Eric Richardson 9 years ago
parent 69d735a293
commit b2f3a02134
  1. 4
      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.

Loading…
Cancel
Save