Skip to content

Commit

Permalink
Add () to remote function call included in use macro
Browse files Browse the repository at this point in the history
  • Loading branch information
paradox460 committed Jul 17, 2024
1 parent b5b7ffa commit e9f0fce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/grpc/server.ex
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ defmodule GRPC.Server do
codecs = opts[:codecs] || [GRPC.Codec.Proto, GRPC.Codec.WebText]
compressors = opts[:compressors] || []

Enum.each(service_mod.__rpc_calls__, fn {name, _, _} = rpc ->
Enum.each(service_mod.__rpc_calls__(), fn {name, _, _} = rpc ->
func_name = name |> to_string |> Macro.underscore() |> String.to_atom()
path = "/#{service_name}/#{name}"
grpc_type = GRPC.Service.grpc_type(rpc)
Expand Down

0 comments on commit e9f0fce

Please sign in to comment.