chore: fix elivs warnings

This commit is contained in:
JianBo He 2022-03-21 18:52:41 +08:00
parent 094c4ad262
commit 6da4592bb0
1 changed files with 5 additions and 2 deletions

View File

@ -55,6 +55,8 @@
]). ]).
-endif. -endif.
-elvis([{elvis_style, dont_repeat_yourself, disable}]).
event_names() -> event_names() ->
[ 'client.connected' [ 'client.connected'
, 'client.disconnected' , 'client.disconnected'
@ -407,7 +409,8 @@ event_info_message_dropped() ->
event_info_common( event_info_common(
'message.dropped', 'message.dropped',
{<<"message routing-drop">>, <<"消息转发丢弃"/utf8>>}, {<<"message routing-drop">>, <<"消息转发丢弃"/utf8>>},
{<<"messages are discarded during routing, usually because there are no subscribers">>, <<"消息在转发的过程中被丢弃,一般是由于没有订阅者"/utf8>>}, {<<"messages are discarded during routing, usually because there are no subscribers">>,
<<"消息在转发的过程中被丢弃,一般是由于没有订阅者"/utf8>>},
<<"SELECT * FROM \"$events/message_dropped\" WHERE topic =~ 't/#'">> <<"SELECT * FROM \"$events/message_dropped\" WHERE topic =~ 't/#'">>
). ).
event_info_delivery_dropped() -> event_info_delivery_dropped() ->