Skip to content

Commit 5f7daf0

Browse files
committed
peer disc retry
1 parent 6768dc6 commit 5f7daf0

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

deps/rabbit/src/rabbit_peer_discovery.erl

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -705,16 +705,16 @@ erpc_call(Node, Mod, Fun, Args, FromNode) ->
705705
try
706706
erpc:call(Node, Mod, Fun, Args)
707707
catch
708-
error:{erpc, Reason}:Stacktrace ->
708+
error:{erpc, Reason} ->
709709
Peer = node(),
710710
_ = catch erpc:call(
711711
FromNode,
712-
logger, alert, % XXX
713-
["Peer discovery: temporary hidden node '~ts' failed to connect to '~ts': ~0p",
712+
logger, debug,
713+
["Peer discovery: temporary hidden node '~ts' "
714+
"failed to connect to '~ts': ~0p",
714715
[Peer, Node, Reason]]),
715-
erlang:raise(error, {erpc, Reason}, Stacktrace)
716-
%timer:sleep(200),
717-
%erpc_call(Node, Mod, Fun, Args, FromNode)
716+
timer:sleep(200),
717+
erpc_call(Node, Mod, Fun, Args, FromNode)
718718
end.
719719

720720
-spec sort_nodes_and_props(NodesAndProps) ->

0 commit comments

Comments
 (0)