docs: fix stale comments and dates

This commit is contained in:
Thales Macedo Garitezi 2024-06-10 09:53:02 -03:00
parent ef36350bf6
commit aa416cc0ad
3 changed files with 4 additions and 5 deletions

View File

@ -2,7 +2,7 @@ Business Source License 1.1
Licensor: Hangzhou EMQ Technologies Co., Ltd. Licensor: Hangzhou EMQ Technologies Co., Ltd.
Licensed Work: EMQX Enterprise Edition Licensed Work: EMQX Enterprise Edition
The Licensed Work is (c) 2023 The Licensed Work is (c) 2024
Hangzhou EMQ Technologies Co., Ltd. Hangzhou EMQ Technologies Co., Ltd.
Additional Use Grant: Students and educators are granted right to copy, Additional Use Grant: Students and educators are granted right to copy,
modify, and create derivative work for research modify, and create derivative work for research

View File

@ -49,9 +49,9 @@
-define(TRANSFORMATIONS_CONF_PATH, [?CONF_ROOT, transformations]). -define(TRANSFORMATIONS_CONF_PATH, [?CONF_ROOT, transformations]).
-type transformation_name() :: binary(). -type transformation_name() :: binary().
%% TODO %% TODO: make more specific typespec
-type transformation() :: #{atom() => term()}. -type transformation() :: #{atom() => term()}.
%% TODO %% TODO: make more specific typespec
-type variform() :: any(). -type variform() :: any().
-type operation() :: #{key := [binary(), ...], value := variform()}. -type operation() :: #{key := [binary(), ...], value := variform()}.
-type qos() :: 0..2. -type qos() :: 0..2.
@ -174,7 +174,6 @@ on_message_publish(Message = #message{topic = Topic, headers = Headers}) ->
Transformations -> Transformations ->
case run_transformations(Transformations, Message) of case run_transformations(Transformations, Message) of
#message{} = FinalMessage -> #message{} = FinalMessage ->
%% FIXME: must ensure final payload is a binary!! Check this.
emqx_metrics:inc('messages.transformation_succeeded'), emqx_metrics:inc('messages.transformation_succeeded'),
{ok, FinalMessage}; {ok, FinalMessage};
drop -> drop ->

View File

@ -2,7 +2,7 @@ Business Source License 1.1
Licensor: Hangzhou EMQ Technologies Co., Ltd. Licensor: Hangzhou EMQ Technologies Co., Ltd.
Licensed Work: EMQX Enterprise Edition Licensed Work: EMQX Enterprise Edition
The Licensed Work is (c) 2023 The Licensed Work is (c) 2024
Hangzhou EMQ Technologies Co., Ltd. Hangzhou EMQ Technologies Co., Ltd.
Additional Use Grant: Students and educators are granted right to copy, Additional Use Grant: Students and educators are granted right to copy,
modify, and create derivative work for research modify, and create derivative work for research