]> Entropealabs - wampex_router.git/commitdiff
remove with statement
authorChristopher <chris@entropealabs.com>
Thu, 16 Apr 2020 15:36:16 +0000 (10:36 -0500)
committerChristopher <chris@entropealabs.com>
Thu, 16 Apr 2020 15:36:16 +0000 (10:36 -0500)
lib/router/realms/session.ex

index 0df69dc1c7da0758219fc19d143632d85206d81d..7d2aeed78b4bf32512a2102a38a803842543ef9e 100644 (file)
@@ -19,10 +19,9 @@ defmodule Wampex.Router.Realms.Session do
   def callees(db, realm, procedure) do
     Logger.info("Getting callees for #{inspect(procedure)} in realm #{inspect(realm)}")
 
-    with {_key, callees} <- ClusterKV.get(db, realm, procedure, 500),
-         {_key, [callee_index]} <- ClusterKV.get(db, realm, "#{procedure}:callee_index") do
-      {callees, callee_index}
-    end
+    {_key, callees} = ClusterKV.get(db, realm, procedure, 500)
+    {_key, [callee_index]} = ClusterKV.get(db, realm, "#{procedure}:callee_index")
+    {callees, callee_index}
   end
 
   def round_robin(db, realm, procedure, len) do