fix(emqx_coap): ignore auto subscribe

This commit is contained in:
firest 2022-01-26 11:25:24 +08:00
parent 05d6c40717
commit 97c18bb0f2
1 changed files with 4 additions and 1 deletions

View File

@ -303,8 +303,11 @@ handle_cast(Req, Channel) ->
-spec(handle_info(Info :: term(), channel()) -spec(handle_info(Info :: term(), channel())
-> ok | {ok, channel()} | {shutdown, Reason :: term(), channel()}). -> ok | {ok, channel()} | {shutdown, Reason :: term(), channel()}).
handle_info({subscribe, _AutoSubs}, Channel) ->
{ok, Channel};
handle_info(Info, Channel) -> handle_info(Info, Channel) ->
?SLOG(error, #{msg => "unexpected_info", info => Info}), ?SLOG(warning, #{msg => "unexpected_info", info => Info}),
{ok, Channel}. {ok, Channel}.
%%-------------------------------------------------------------------- %%--------------------------------------------------------------------