remove use of keyword args

pull/13204/head
Alexander Polcyn 7 years ago
parent c0fe6025b4
commit 99fdda8c8e
  1. 16
      src/ruby/lib/grpc/generic/interceptors.rb

@ -41,7 +41,7 @@ module GRPC
# @param [Method] method # @param [Method] method
# @param [Hash] metadata # @param [Hash] metadata
# #
def request_response(request:, call:, method:, metadata:) def request_response(request: nil, call: nil, method: nil, metadata: nil)
GRPC.logger.debug "Intercepting request response method #{method}" \ GRPC.logger.debug "Intercepting request response method #{method}" \
" for request #{request} with call #{call} and metadata: #{metadata}" " for request #{request} with call #{call} and metadata: #{metadata}"
yield yield
@ -55,7 +55,7 @@ module GRPC
# @param [Method] method # @param [Method] method
# @param [Hash] metadata # @param [Hash] metadata
# #
def client_streamer(requests:, call:, method:, metadata:) def client_streamer(requests: nil, call: nil, method: nil, metadata: nil)
GRPC.logger.debug "Intercepting client streamer method #{method}" \ GRPC.logger.debug "Intercepting client streamer method #{method}" \
" for requests #{requests} with call #{call} and metadata: #{metadata}" " for requests #{requests} with call #{call} and metadata: #{metadata}"
yield yield
@ -69,7 +69,7 @@ module GRPC
# @param [Method] method # @param [Method] method
# @param [Hash] metadata # @param [Hash] metadata
# #
def server_streamer(request:, call:, method:, metadata:) def server_streamer(request: nil, call: nil, method: nil, metadata: nil)
GRPC.logger.debug "Intercepting server streamer method #{method}" \ GRPC.logger.debug "Intercepting server streamer method #{method}" \
" for request #{request} with call #{call} and metadata: #{metadata}" " for request #{request} with call #{call} and metadata: #{metadata}"
yield yield
@ -83,7 +83,7 @@ module GRPC
# @param [Method] method # @param [Method] method
# @param [Hash] metadata # @param [Hash] metadata
# #
def bidi_streamer(requests:, call:, method:, metadata:) def bidi_streamer(requests: nil, call: nil, method: nil, metadata: nil)
GRPC.logger.debug "Intercepting bidi streamer method #{method}" \ GRPC.logger.debug "Intercepting bidi streamer method #{method}" \
" for requests #{requests} with call #{call} and metadata: #{metadata}" " for requests #{requests} with call #{call} and metadata: #{metadata}"
yield yield
@ -102,7 +102,7 @@ module GRPC
# @param [GRPC::ActiveCall::SingleReqView] call # @param [GRPC::ActiveCall::SingleReqView] call
# @param [Method] method # @param [Method] method
# #
def request_response(request:, call:, method:) def request_response(request: nil, call: nil, method: nil)
GRPC.logger.debug "Intercepting request response method #{method}" \ GRPC.logger.debug "Intercepting request response method #{method}" \
" for request #{request} with call #{call}" " for request #{request} with call #{call}"
yield yield
@ -114,7 +114,7 @@ module GRPC
# @param [GRPC::ActiveCall::MultiReqView] call # @param [GRPC::ActiveCall::MultiReqView] call
# @param [Method] method # @param [Method] method
# #
def client_streamer(call:, method:) def client_streamer(call: nil, method: nil)
GRPC.logger.debug "Intercepting client streamer method #{method}" \ GRPC.logger.debug "Intercepting client streamer method #{method}" \
" with call #{call}" " with call #{call}"
yield yield
@ -127,7 +127,7 @@ module GRPC
# @param [GRPC::ActiveCall::SingleReqView] call # @param [GRPC::ActiveCall::SingleReqView] call
# @param [Method] method # @param [Method] method
# #
def server_streamer(request:, call:, method:) def server_streamer(request: nil, call: nil, method: nil)
GRPC.logger.debug "Intercepting server streamer method #{method}" \ GRPC.logger.debug "Intercepting server streamer method #{method}" \
" for request #{request} with call #{call}" " for request #{request} with call #{call}"
yield yield
@ -140,7 +140,7 @@ module GRPC
# @param [GRPC::ActiveCall::MultiReqView] call # @param [GRPC::ActiveCall::MultiReqView] call
# @param [Method] method # @param [Method] method
# #
def bidi_streamer(requests:, call:, method:) def bidi_streamer(requests: nil, call: nil, method: nil)
GRPC.logger.debug "Intercepting bidi streamer method #{method}" \ GRPC.logger.debug "Intercepting bidi streamer method #{method}" \
" for requests #{requests} with call #{call}" " for requests #{requests} with call #{call}"
yield yield

Loading…
Cancel
Save