aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ruby/lib
diff options
context:
space:
mode:
authorGravatar ganmacs <ganmacs@gmail.com>2018-11-25 17:31:53 +0900
committerGravatar ganmacs <ganmacs@gmail.com>2018-11-25 17:31:53 +0900
commitbd1fdfaabe6b330e83c7a8d4b3b7cefc477d02f4 (patch)
treeeb955d7fe8cc17b2c3b7e062951e638a6256233b /src/ruby/lib
parente0d9692fa30cf3a7a8410a722693d5d3d68fb0fd (diff)
Return unimplemented
when calling a method which is server_streamer and is not implemented by user
Diffstat (limited to 'src/ruby/lib')
-rw-r--r--src/ruby/lib/grpc/generic/service.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ruby/lib/grpc/generic/service.rb b/src/ruby/lib/grpc/generic/service.rb
index 4764217406..169a62f11d 100644
--- a/src/ruby/lib/grpc/generic/service.rb
+++ b/src/ruby/lib/grpc/generic/service.rb
@@ -95,7 +95,7 @@ module GRPC
rpc_descs[name] = RpcDesc.new(name, input, output,
marshal_class_method,
unmarshal_class_method)
- define_method(GenericService.underscore(name.to_s).to_sym) do |_, _|
+ define_method(GenericService.underscore(name.to_s).to_sym) do |*|
fail GRPC::BadStatus.new_status_exception(
GRPC::Core::StatusCodes::UNIMPLEMENTED)
end