fix(gw_gbt32960): undefined type `emqx_gbt32960_frame:frame()`

This commit is contained in:
JimMoen 2023-11-05 21:22:40 +08:00
parent aef5b17ed5
commit a218ff6dd8
No known key found for this signature in database
GPG Key ID: 87A520B4F76BA86D
2 changed files with 3 additions and 2 deletions

View File

@ -4,6 +4,8 @@
-record(frame, {cmd, ack, vin, encrypt, length, data, check, rawdata}). -record(frame, {cmd, ack, vin, encrypt, length, data, check, rawdata}).
-type frame() :: #frame{}.
-define(CMD(CmdType), #frame{ -define(CMD(CmdType), #frame{
cmd = CmdType, cmd = CmdType,
ack = ?ACK_IS_CMD ack = ?ACK_IS_CMD

View File

@ -67,7 +67,6 @@
| {close, Reason :: atom()}. | {close, Reason :: atom()}.
-type replies() :: reply() | [reply()]. -type replies() :: reply() | [reply()].
-type frame() :: emqx_gbt32960_frame:frame().
-define(TIMER_TABLE, #{ -define(TIMER_TABLE, #{
alive_timer => keepalive, alive_timer => keepalive,
@ -203,7 +202,7 @@ setting_peercert_infos(Peercert, ClientInfo) ->
%%-------------------------------------------------------------------- %%--------------------------------------------------------------------
%% Handle incoming packet %% Handle incoming packet
%%-------------------------------------------------------------------- %%--------------------------------------------------------------------
-spec handle_in(emqx_gbt32960_frame:frame() | {frame_error, any()}, channel()) -> -spec handle_in(frame() | {frame_error, any()}, channel()) ->
{ok, channel()} {ok, channel()}
| {ok, replies(), channel()} | {ok, replies(), channel()}
| {shutdown, Reason :: term(), channel()} | {shutdown, Reason :: term(), channel()}