refactor(alarm): remove excess case

This commit is contained in:
zhouzb 2020-08-21 13:52:24 +08:00 committed by tigercl
parent c2cc8ab218
commit cfcbc53a8b
1 changed files with 0 additions and 2 deletions

View File

@ -342,8 +342,6 @@ normalize_message(too_many_processes, #{usage := Usage}) ->
list_to_binary(io_lib:format("~p% process usage", [Usage]));
normalize_message(partition, #{occurred := Node}) ->
list_to_binary(io_lib:format("Partition occurs at node ~s", [Node]));
normalize_message(partition, #{occurred := Node}) ->
list_to_binary(io_lib:format("Partition occurs at node ~s", [Node]));
normalize_message(ResourceDown = <<"resource", _/binary>>, _) ->
[_, Type, ID, _] = binary:split(ResourceDown, <<"/">>, [global, trim_all]),
list_to_binary(io_lib:format("Resource ~s(~s) is down", [Type, ID]));