mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-22 17:28:25 +01:00
Use ejabberd_cluster:call() instead of rpc:call()
This commit is contained in:
parent
6f5d99275b
commit
53dacb3825
@ -92,7 +92,7 @@ start() ->
|
|||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
Node = list_to_atom(SNode1),
|
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} ->
|
{badrpc, Reason} ->
|
||||||
print("Failed RPC connection to the node ~p: ~p~n",
|
print("Failed RPC connection to the node ~p: ~p~n",
|
||||||
[Node, Reason]),
|
[Node, Reason]),
|
||||||
|
Loading…
Reference in New Issue
Block a user