From 75163e21f3bd598171ad38cfa356d7fc924c0663 Mon Sep 17 00:00:00 2001 From: Gilbert Wong Date: Tue, 26 Feb 2019 11:19:44 +0800 Subject: [PATCH] Reverse intensity/period in bridge SupFlag --- src/portal/emqx_portal.erl | 2 +- src/portal/emqx_portal_sup.erl | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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}) ->