Skip to content
Snippets Groups Projects
Commit 47f1f9e1 authored by Michael Lumish's avatar Michael Lumish Committed by GitHub
Browse files

Merge pull request #9034 from igorpeshansky/patch-1

Use snake_case names for default rpc method implementations
parents b4c27c1c e51e72d7
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