fix: restart resource should not clear metrics

This commit is contained in:
EMQ-YangM 2022-05-13 14:32:49 +08:00
parent bcac65310b
commit d5c416736b
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) ->
case lookup(InstId) of
{ok, Group, #{mod := ResourceType, config := Config} = _Data} ->
_ = remove(InstId),
_ = remove(InstId, false),
do_start(InstId, Group, ResourceType, Config, Opts);
Error ->
Error