Use ejabberd_cluster:call() instead of rpc:call()

This commit is contained in:
Evgeny Khramtsov 2019-07-12 12:30:38 +03:00
parent 6f5d99275b
commit 53dacb3825
1 changed files with 1 additions and 1 deletions

View 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]),