From e65b6a11f17914ab3f1e94eca4688d51ba5f531b Mon Sep 17 00:00:00 2001 From: David Webster <> Date: Mon, 4 Nov 2024 15:29:37 +1100 Subject: [PATCH] Use parentheses in GRPC.Stub to avoid warnings during compilation in elixir 1.17 --- lib/grpc/stub.ex | 2 +- mix.exs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/grpc/stub.ex b/lib/grpc/stub.ex index 820172a4..de5a8e1c 100644 --- a/lib/grpc/stub.ex +++ b/lib/grpc/stub.ex @@ -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) diff --git a/mix.exs b/mix.exs index aa0ec0d4..3d0ae551 100644 --- a/mix.exs +++ b/mix.exs @@ -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,