Merge pull request #6864 from lafirest/fix/ignore_auto_sub

fix(emqx_coap): ignore auto subscribe
This commit is contained in:
lafirest 2022-01-26 13:38:29 +08:00 committed by GitHub
commit d422afdf0d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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}.
%%-------------------------------------------------------------------- %%--------------------------------------------------------------------