aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Letan <contact@thomasletan.fr>2018-03-07 20:14:20 +0100
committerThomas Letan <contact@thomasletan.fr>2018-03-07 20:14:20 +0100
commit304f6a9cc0c8fd2b8c63fab0ec63707ecabf02f8 (patch)
tree04d94dab7a206895efa2f5c58fab66da48fd500a
parentchore: Setting up travais yet another time (diff)
refactor: Simply the key for instance' notify group
The use of the :via atom was confusing, as a dispatch Registry can be any term and :via has a special meaning in Elixir. The new key format is more straightforward and therefore better.
-rw-r--r--lib/lkn/core.ex2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/lkn/core.ex b/lib/lkn/core.ex
index 812c1bb..2719c4a 100644
--- a/lib/lkn/core.ex
+++ b/lib/lkn/core.ex
@@ -54,7 +54,7 @@ defmodule Lkn.Core do
@spec notify_group(Instance.k) :: t
def notify_group(instance_key) do
- {:via, Registry, {Lkn.Core.Notifier, {:engine, instance_key, :notifier}}}
+ {:engine, instance_key, :notifier}
end
@spec instance(Instance.k) :: t