Reverse intensity/period in bridge SupFlag

This commit is contained in:
Gilbert Wong 2019-02-26 11:19:44 +08:00
parent afa0d98b8d
commit 75163e21f3
2 changed files with 3 additions and 3 deletions

View File

@ -292,7 +292,7 @@ standing_by(info, Info, State) ->
?INFO("Portal ~p discarded info event at state standing_by:\n~p", [name(), Info]),
{keep_state_and_data, State};
standing_by(Type, Content, State) ->
common(connecting, Type, Content, State).
common(standing_by, Type, Content, State).
%% @doc Connecting state is a state with timeout.
%% After each timeout, it re-enters this state and start a retry until

View File

@ -31,8 +31,8 @@ init(?SUP) ->
BridgesConf = emqx_config:get_env(bridges, []),
BridgeSpec = lists:map(fun portal_spec/1, BridgesConf),
SupFlag = #{strategy => one_for_one,
intensity => 10,
period => 100},
intensity => 100,
period => 10},
{ok, {SupFlag, BridgeSpec}}.
portal_spec({Name, Config}) ->