Use snake_case names for default rpc method implementations

This is what `GRPC::Pool::add_rpc_descs_for` expects.
pull/9034/head
igorpeshansky 8 years ago committed by GitHub
parent c204647295
commit e51e72d7c9
  1. 2
      src/ruby/lib/grpc/generic/service.rb

@ -110,7 +110,7 @@ module GRPC
rpc_descs[name] = RpcDesc.new(name, input, output,
marshal_class_method,
unmarshal_class_method)
define_method(name) do
define_method(GenericService.underscore(name.to_s).to_sym) do
fail GRPC::BadStatus, GRPC::Core::StatusCodes::UNIMPLEMENTED
end
end

Loading…
Cancel
Save