Преглед изворни кода

Merge pull request #8481 from lafirest/fix/retainer_flow_control

fix(retainer): set default value of flow control
lafirest пре 3 година
родитељ
комит
0f5f3985a5

+ 1 - 1
apps/emqx_retainer/src/emqx_retainer.app.src

@@ -2,7 +2,7 @@
 {application, emqx_retainer, [
     {description, "EMQX Retainer"},
     % strict semver, bump manually!
-    {vsn, "5.0.1"},
+    {vsn, "5.0.2"},
     {modules, []},
     {registered, [emqx_retainer_sup]},
     {applications, [kernel, stdlib, emqx]},

+ 4 - 3
apps/emqx_retainer/src/emqx_retainer_schema.erl

@@ -36,7 +36,8 @@ fields("retainer") ->
         {flow_control,
             sc(
                 ?R_REF(flow_control),
-                flow_control
+                flow_control,
+                #{}
             )},
         {max_payload_size,
             sc(
@@ -104,8 +105,8 @@ desc(_) ->
 %% Internal functions
 %%--------------------------------------------------------------------
 
-sc(Type, DescId) ->
-    hoconsc:mk(Type, #{desc => ?DESC(DescId)}).
+%%sc(Type, DescId) ->
+%%    hoconsc:mk(Type, #{desc => ?DESC(DescId)}).
 
 sc(Type, DescId, Default) ->
     hoconsc:mk(Type, #{default => Default, desc => ?DESC(DescId)}).