refactor(alarm): remove excess case
This commit is contained in:
parent
c2cc8ab218
commit
cfcbc53a8b
|
@ -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]));
|
||||
|
|
Loading…
Reference in New Issue