Jelajahi Sumber

fix subscription

Feng 9 tahun lalu
induk
melakukan
6cfb1029d3
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      priv/emq.schema

+ 1 - 1
priv/emq.schema

@@ -709,7 +709,7 @@ end}.
                                       {list_to_binary(Topic), list_to_integer(Qos)}
                                       {list_to_binary(Topic), list_to_integer(Qos)}
                                   end || S <- string:tokens(Topics, ",")]
                                   end || S <- string:tokens(Topics, ",")]
                end,
                end,
-    SubOpts = fun(Prefix) -> [{topics, ParseFun(cuttlefish:conf_get(Prefix ++ ".topics", Conf))}] end,
+    SubOpts = fun(Prefix) -> ParseFun(cuttlefish:conf_get(Prefix ++ ".topics", Conf)) end,
     lists:append([WithMod(retainer, RetainOpts), WithMod(presence, PresOpts), WithMod(subscription, SubOpts)])
     lists:append([WithMod(retainer, RetainOpts), WithMod(presence, PresOpts), WithMod(subscription, SubOpts)])
 end}.
 end}.