]> granicus.if.org Git - ejabberd/commitdiff
Use ejabberd_cluster:call() instead of rpc:call()
authorEvgeny Khramtsov <ekhramtsov@process-one.net>
Fri, 12 Jul 2019 09:30:38 +0000 (12:30 +0300)
committerEvgeny Khramtsov <ekhramtsov@process-one.net>
Fri, 12 Jul 2019 09:30:38 +0000 (12:30 +0300)
src/ejabberd_ctl.erl

index 45169cdcfb4d98bee7809d18b8689df199ae5ab6..396398e388a14745de6ea79f910d868312e67762 100644 (file)
@@ -92,7 +92,7 @@ start() ->
                      end
              end,
     Node = list_to_atom(SNode1),
-    Status = case rpc:call(Node, ?MODULE, process, [Args], Timeout) of
+    Status = case ejabberd_cluster:call(Node, ?MODULE, process, [Args], Timeout) of
                  {badrpc, Reason} ->
                      print("Failed RPC connection to the node ~p: ~p~n",
                            [Node, Reason]),