diff --git a/src/portal/emqx_portal.erl b/src/portal/emqx_portal.erl index 66d83eacc..ff481f603 100644 --- a/src/portal/emqx_portal.erl +++ b/src/portal/emqx_portal.erl @@ -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 diff --git a/src/portal/emqx_portal_sup.erl b/src/portal/emqx_portal_sup.erl index 19bb4e684..fbc292c4e 100644 --- a/src/portal/emqx_portal_sup.erl +++ b/src/portal/emqx_portal_sup.erl @@ -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}) ->