k32 4 лет назад
Родитель
Сommit
22bdcfa4b5

+ 2 - 2
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().

+ 1 - 1
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.

+ 4 - 4
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

+ 1 - 1
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.