Skip to content
Snippets Groups Projects
Commit e51e72d7 authored by igorpeshansky's avatar igorpeshansky Committed by GitHub
Browse files

Use snake_case names for default rpc method implementations

This is what `GRPC::Pool::add_rpc_descs_for` expects.
parent c2046472
No related branches found
No related tags found
No related merge requests found
...@@ -110,7 +110,7 @@ module GRPC ...@@ -110,7 +110,7 @@ module GRPC
rpc_descs[name] = RpcDesc.new(name, input, output, rpc_descs[name] = RpcDesc.new(name, input, output,
marshal_class_method, marshal_class_method,
unmarshal_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 fail GRPC::BadStatus, GRPC::Core::StatusCodes::UNIMPLEMENTED
end end
end end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment