Merge pull request #5540 from DDDHuang/fix_clients_api

fix: clients subscribe api
This commit is contained in:
DDDHuang 2021-08-24 09:57:17 +08:00 committed by GitHub
commit e88823fd36
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 1 deletions

View File

@ -642,7 +642,6 @@ format_authz_cache({{PubSub, Topic}, {AuthzResult, Timestamp}}) ->
do_subscribe(ClientID, Topic0, Qos) ->
{Topic, Opts} = emqx_topic:parse(Topic0),
TopicTable = [{Topic, Opts#{qos => Qos}}],
emqx_mgmt:subscribe(ClientID, TopicTable),
case emqx_mgmt:subscribe(ClientID, TopicTable) of
{error, Reason} ->
{error, Reason};