Skip to content

Commit

Permalink
Merge pull request grpc#13204 from apolcyn/fix_broken_ruby_20_for_master
Browse files Browse the repository at this point in the history
Remove required keyword args in ruby, for master branch
  • Loading branch information
apolcyn authored Nov 14, 2017
2 parents b0bad8f + 99fdda8 commit 2e8bef1
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/ruby/lib/grpc/generic/interceptors.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class ClientInterceptor < Interceptor
# @param [Method] method
# @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}" \
" for request #{request} with call #{call} and metadata: #{metadata}"
yield
Expand All @@ -55,7 +55,7 @@ def request_response(request:, call:, method:, metadata:)
# @param [Method] method
# @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}" \
" for requests #{requests} with call #{call} and metadata: #{metadata}"
yield
Expand All @@ -69,7 +69,7 @@ def client_streamer(requests:, call:, method:, metadata:)
# @param [Method] method
# @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}" \
" for request #{request} with call #{call} and metadata: #{metadata}"
yield
Expand All @@ -83,7 +83,7 @@ def server_streamer(request:, call:, method:, metadata:)
# @param [Method] method
# @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}" \
" for requests #{requests} with call #{call} and metadata: #{metadata}"
yield
Expand All @@ -102,7 +102,7 @@ class ServerInterceptor < Interceptor
# @param [GRPC::ActiveCall::SingleReqView] call
# @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}" \
" for request #{request} with call #{call}"
yield
Expand All @@ -114,7 +114,7 @@ def request_response(request:, call:, method:)
# @param [GRPC::ActiveCall::MultiReqView] call
# @param [Method] method
#
def client_streamer(call:, method:)
def client_streamer(call: nil, method: nil)
GRPC.logger.debug "Intercepting client streamer method #{method}" \
" with call #{call}"
yield
Expand All @@ -127,7 +127,7 @@ def client_streamer(call:, method:)
# @param [GRPC::ActiveCall::SingleReqView] call
# @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}" \
" for request #{request} with call #{call}"
yield
Expand All @@ -140,7 +140,7 @@ def server_streamer(request:, call:, method:)
# @param [GRPC::ActiveCall::MultiReqView] call
# @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}" \
" for requests #{requests} with call #{call}"
yield
Expand Down

0 comments on commit 2e8bef1

Please sign in to comment.