Explorar o código

fix: clients subscribe api

DDDHuang %!s(int64=4) %!d(string=hai) anos
pai
achega
25bae9e397
Modificáronse 1 ficheiros con 0 adicións e 1 borrados
  1. 0 1
      apps/emqx_management/src/emqx_mgmt_api_clients.erl

+ 0 - 1
apps/emqx_management/src/emqx_mgmt_api_clients.erl

@@ -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};