From 3439ee298a357b798c4759c6dd3079aa62a04063 Mon Sep 17 00:00:00 2001 From: Kacper Perzankowski Date: Tue, 2 Jul 2024 10:52:49 +0200 Subject: [PATCH] Use parentheses to avoid warnings during compilation in elixir 1.17 (#16) * Use parentheses to avoid warnings during compilation in elixir 1.17 * bump version --- lib/grpc/server.ex | 2 +- mix.exs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/grpc/server.ex b/lib/grpc/server.ex index 557686a0..9274d954 100644 --- a/lib/grpc/server.ex +++ b/lib/grpc/server.ex @@ -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) diff --git a/mix.exs b/mix.exs index 6710f48b..aa0ec0d4 100644 --- a/mix.exs +++ b/mix.exs @@ -4,7 +4,7 @@ defmodule GRPC.Mixfile do def project do [ app: :grpc, - version: "0.6.4", + version: "0.6.5", elixir: "~> 1.5", elixirc_paths: elixirc_paths(Mix.env()), build_embedded: Mix.env() == :prod,