Skip to content

Commit

Permalink
Use parentheses to avoid warnings during compilation in elixir 1.17
Browse files Browse the repository at this point in the history
  • Loading branch information
perzanko committed Jul 1, 2024
1 parent db55fca commit 7825319
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 @@ -47,7 +47,7 @@ defmodule GRPC.Server do
codecs = opts[:codecs] || [GRPC.Codec.Proto]
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 7825319

Please sign in to comment.