]> Entropealabs - wampex_client.git/commitdiff
update invocation id position
authorChristopher <chris@entropealabs.com>
Sat, 21 Mar 2020 23:15:23 +0000 (18:15 -0500)
committerChristopher <chris@entropealabs.com>
Sat, 21 Mar 2020 23:15:23 +0000 (18:15 -0500)
lib/client/session.ex

index 9e4016af436f967a40206afbf6c1bb75f1e3b124..032069acf018072307400a5c6956a1bdbb0daba3 100644 (file)
@@ -318,10 +318,9 @@ defmodule Wampex.Client.Session do
         @invocation,
         %SL{data: %Sess{name: name, invocation: invocation}} = sl
       ) do
-    Logger.debug("Received Invocation #{inspect(invocation)}")
     reg = Client.callee_registry_name(name)
 
-    Registry.dispatch(reg, elem(invocation, 2), fn entries ->
+    Registry.dispatch(reg, elem(invocation, 3), fn entries ->
       for {pid, _procedure} <- entries, do: send(pid, invocation)
     end)