Reverse intensity/period in bridge SupFlag
This commit is contained in:
parent
afa0d98b8d
commit
75163e21f3
|
@ -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
|
||||
|
|
|
@ -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}) ->
|
||||
|
|
Loading…
Reference in New Issue