Don't allow a too-slow restart to prevent a reconnect delay.

This commit is contained in:
Simon MacMullen 2014-07-14 13:58:48 +01:00
parent c534a4c2d5
commit f5ab2f50f1
1 changed files with 3 additions and 3 deletions

View File

@ -91,9 +91,9 @@ children(Sup, UpstreamName) ->
%%----------------------------------------------------------------------------
init(XorQ) ->
%% 1, 1 so that the supervisor can give up and get into waiting
%% for the reconnect_delay quickly.
{ok, {{one_for_one, 1, 1}, specs(XorQ)}}.
%% 0, 1 so that we always give up straight away and get into the
%% reconnect delay
{ok, {{one_for_one, 0, 1}, specs(XorQ)}}.
specs(XorQ) ->
[spec(Upstream, XorQ) || Upstream <- rabbit_federation_upstream:for(XorQ)].