From 22bdcfa4b5772948d3f14b5bc208627d6b0ef86e Mon Sep 17 00:00:00 2001 From: k32 <10274441+k32@users.noreply.github.com> Date: Wed, 5 Jan 2022 14:37:26 +0100 Subject: [PATCH] fix(bpapi): Apply remarks --- apps/emqx/src/bpapi/emqx_bpapi.erl | 4 ++-- apps/emqx/src/bpapi/emqx_bpapi_static_checks.erl | 2 +- apps/emqx/src/bpapi/emqx_bpapi_trans.erl | 8 ++++---- apps/emqx/src/proto/emqx_broker_proto_v1.erl | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/apps/emqx/src/bpapi/emqx_bpapi.erl b/apps/emqx/src/bpapi/emqx_bpapi.erl index d76cb0085..d99f0e53b 100644 --- a/apps/emqx/src/bpapi/emqx_bpapi.erl +++ b/apps/emqx/src/bpapi/emqx_bpapi.erl @@ -1,5 +1,5 @@ %%-------------------------------------------------------------------- -%% Copyright (c) 2021 EMQ Technologies Co., Ltd. All Rights Reserved. +%% Copyright (c) 2022 EMQ Technologies Co., Ltd. All Rights Reserved. %% %% Licensed under the Apache License, Version 2.0 (the "License"); %% you may not use this file except in compliance with the License. @@ -15,7 +15,7 @@ %%-------------------------------------------------------------------- -module(emqx_bpapi). --export_type([var_name/0, call/0, rpc/0, bpapi_meta/0]). +-export_type([api/0, api_version/0, var_name/0, call/0, rpc/0, bpapi_meta/0]). -type api() :: atom(). -type api_version() :: non_neg_integer(). diff --git a/apps/emqx/src/bpapi/emqx_bpapi_static_checks.erl b/apps/emqx/src/bpapi/emqx_bpapi_static_checks.erl index f26143219..5023e9b9f 100644 --- a/apps/emqx/src/bpapi/emqx_bpapi_static_checks.erl +++ b/apps/emqx/src/bpapi/emqx_bpapi_static_checks.erl @@ -1,5 +1,5 @@ %%-------------------------------------------------------------------- -%% Copyright (c) 2021 EMQ Technologies Co., Ltd. All Rights Reserved. +%% Copyright (c) 2022 EMQ Technologies Co., Ltd. All Rights Reserved. %% %% Licensed under the Apache License, Version 2.0 (the "License"); %% you may not use this file except in compliance with the License. diff --git a/apps/emqx/src/bpapi/emqx_bpapi_trans.erl b/apps/emqx/src/bpapi/emqx_bpapi_trans.erl index a2ef547c0..f39215069 100644 --- a/apps/emqx/src/bpapi/emqx_bpapi_trans.erl +++ b/apps/emqx/src/bpapi/emqx_bpapi_trans.erl @@ -1,5 +1,5 @@ %%-------------------------------------------------------------------- -%% Copyright (c) 2020-2021 EMQ Technologies Co., Ltd. All Rights Reserved. +%% Copyright (c) 2022 EMQ Technologies Co., Ltd. All Rights Reserved. %% %% Licensed under the Apache License, Version 2.0 (the "License"); %% you may not use this file except in compliance with the License. @@ -27,9 +27,9 @@ -type semantics() :: call | cast. -record(s, - { api :: atom() - , module :: atom() - , version :: non_neg_integer() | undefined + { api :: emqx_bpapi:api() + , module :: module() + , version :: emqx_bpapi:api_version() | undefined , targets = [] :: [{semantics(), emqx_bpapi:call(), emqx_bpapi:call()}] , errors = [] :: list() , file diff --git a/apps/emqx/src/proto/emqx_broker_proto_v1.erl b/apps/emqx/src/proto/emqx_broker_proto_v1.erl index 3efbcd3b0..d5725b8ac 100644 --- a/apps/emqx/src/proto/emqx_broker_proto_v1.erl +++ b/apps/emqx/src/proto/emqx_broker_proto_v1.erl @@ -1,5 +1,5 @@ %%-------------------------------------------------------------------- -%% Copyright (c) 2021 EMQ Technologies Co., Ltd. All Rights Reserved. +%% Copyright (c) 2022 EMQ Technologies Co., Ltd. All Rights Reserved. %% %% Licensed under the Apache License, Version 2.0 (the "License"); %% you may not use this file except in compliance with the License.