Skip to content

Commit 73d259a

Browse files
Use parentheses in GRPC.Stub to avoid warnings during compilation in elixir 1.17 (#18)
Co-authored-by: David Webster <>
1 parent 1cbf491 commit 73d259a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/grpc/stub.ex

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ defmodule GRPC.Stub do
5959
service_mod = opts[:service]
6060
service_name = service_mod.__meta__(:name)
6161

62-
Enum.each(service_mod.__rpc_calls__, fn {name, {_, req_stream}, {_, res_stream}} = rpc ->
62+
Enum.each(service_mod.__rpc_calls__(), fn {name, {_, req_stream}, {_, res_stream}} = rpc ->
6363
func_name = name |> to_string |> Macro.underscore()
6464
path = "/#{service_name}/#{name}"
6565
grpc_type = GRPC.Service.grpc_type(rpc)

mix.exs

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ defmodule GRPC.Mixfile do
44
def project do
55
[
66
app: :grpc,
7-
version: "0.6.5",
7+
version: "0.6.6",
88
elixir: "~> 1.5",
99
elixirc_paths: elixirc_paths(Mix.env()),
1010
build_embedded: Mix.env() == :prod,

0 commit comments

Comments
 (0)