From 8fee3b550b56d6830d9c105222deb9c6e4f3b0bd Mon Sep 17 00:00:00 2001 From: =?utf8?q?Christopher=20Cot=C3=A9?= Date: Wed, 10 Nov 2021 12:44:45 -0500 Subject: [PATCH] unique topics and procedures for handler --- lib/client/handler.ex | 4 ++-- mix.exs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/client/handler.ex b/lib/client/handler.ex index 796c1c3..0bf7adb 100644 --- a/lib/client/handler.ex +++ b/lib/client/handler.ex @@ -54,8 +54,8 @@ defmodule Wampex.Client.Handler do end defmacro __before_compile__(env) do - procedures = Module.get_attribute(env.module, :procedures) - topics = Module.get_attribute(env.module, :topics) + procedures = Module.get_attribute(env.module, :procedures) |> Enum.uniq() + topics = Module.get_attribute(env.module, :topics) |> Enum.uniq() quote do alias Wampex.Client diff --git a/mix.exs b/mix.exs index ee9c539..83959f6 100644 --- a/mix.exs +++ b/mix.exs @@ -4,7 +4,7 @@ defmodule Wampex.Client.MixProject do def project do [ app: :wampex_client, - version: "0.1.0", + version: "0.1.1", elixir: "~> 1.9", start_permanent: Mix.env() == :prod, elixirc_paths: elixirc_paths(Mix.env()), -- 2.45.3