Merge pull request #7944 from EMQ-YangM/fix_bridge_status

fix: restart resource should not clear metrics
This commit is contained in:
JianBo He 2022-05-16 09:16:12 +08:00 committed by GitHub
commit 3f59650e4b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -122,7 +122,7 @@ remove(InstId, ClearMetrics) when is_binary(InstId) ->
restart(InstId, Opts) when is_binary(InstId) -> restart(InstId, Opts) when is_binary(InstId) ->
case lookup(InstId) of case lookup(InstId) of
{ok, Group, #{mod := ResourceType, config := Config} = _Data} -> {ok, Group, #{mod := ResourceType, config := Config} = _Data} ->
_ = remove(InstId), _ = remove(InstId, false),
do_start(InstId, Group, ResourceType, Config, Opts); do_start(InstId, Group, ResourceType, Config, Opts);
Error -> Error ->
Error Error