fix: clients subscribe api

This commit is contained in:
DDDHuang 2021-08-23 10:31:24 +08:00
parent 31f588671d
commit 25bae9e397
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) -> do_subscribe(ClientID, Topic0, Qos) ->
{Topic, Opts} = emqx_topic:parse(Topic0), {Topic, Opts} = emqx_topic:parse(Topic0),
TopicTable = [{Topic, Opts#{qos => Qos}}], TopicTable = [{Topic, Opts#{qos => Qos}}],
emqx_mgmt:subscribe(ClientID, TopicTable),
case emqx_mgmt:subscribe(ClientID, TopicTable) of case emqx_mgmt:subscribe(ClientID, TopicTable) of
{error, Reason} -> {error, Reason} ->
{error, Reason}; {error, Reason};