feat(connection): update alarm info

This commit is contained in:
turtled 2020-11-11 09:37:39 +08:00
parent e100b0a5e9
commit 26c03aaa43
1 changed files with 2 additions and 1 deletions

View File

@ -104,7 +104,8 @@
-define(ENABLED(X), (X =/= undefined)).
-define(ALARM_TCP_CONGEST(Channel),
list_to_binary(io_lib:format("mqtt_conn/congested/~s", [emqx_channel:info(clientid, Channel)]))).
list_to_binary(io_lib:format("mqtt_conn/congested/~s/~s", [emqx_channel:info(clientid, Channel), maps:get(username, emqx_channel:info(clientinfo, Channel), <<"undefined">>)]))).
-dialyzer({no_match, [info/2]}).
-dialyzer({nowarn_function, [ init/4