From: Christopher Coté Date: Wed, 10 Nov 2021 17:44:45 +0000 (-0500) Subject: unique topics and procedures for handler X-Git-Url: http://git.entropealabs.com/?a=commitdiff_plain;h=8fee3b550b56d6830d9c105222deb9c6e4f3b0bd;p=wampex_client.git unique topics and procedures for handler --- 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()),