From: Evgeny Khramtsov Date: Fri, 12 Jul 2019 09:30:38 +0000 (+0300) Subject: Use ejabberd_cluster:call() instead of rpc:call() X-Git-Tag: 19.08~93 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=53dacb382590ec9fc350c18754c04aa822bbaadf;p=ejabberd Use ejabberd_cluster:call() instead of rpc:call() --- diff --git a/src/ejabberd_ctl.erl b/src/ejabberd_ctl.erl index 45169cdcf..396398e38 100644 --- a/src/ejabberd_ctl.erl +++ b/src/ejabberd_ctl.erl @@ -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]),