Skip to content

Commit

Permalink
Use parentheses in GRPC.Stub to avoid warnings during compilation in …
Browse files Browse the repository at this point in the history
…elixir 1.17
  • Loading branch information
David Webster committed Nov 4, 2024
1 parent 1cbf491 commit e65b6a1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/grpc/stub.ex
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ defmodule GRPC.Stub do
service_mod = opts[:service]
service_name = service_mod.__meta__(:name)

Enum.each(service_mod.__rpc_calls__, fn {name, {_, req_stream}, {_, res_stream}} = rpc ->
Enum.each(service_mod.__rpc_calls__(), fn {name, {_, req_stream}, {_, res_stream}} = rpc ->
func_name = name |> to_string |> Macro.underscore()
path = "/#{service_name}/#{name}"
grpc_type = GRPC.Service.grpc_type(rpc)
Expand Down
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ defmodule GRPC.Mixfile do
def project do
[
app: :grpc,
version: "0.6.5",
version: "0.6.6",
elixir: "~> 1.5",
elixirc_paths: elixirc_paths(Mix.env()),
build_embedded: Mix.env() == :prod,
Expand Down

0 comments on commit e65b6a1

Please sign in to comment.