Merge pull request #8481 from lafirest/fix/retainer_flow_control
fix(retainer): set default value of flow control
This commit is contained in:
commit
0f5f3985a5
|
@ -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]},
|
||||
|
|
|
@ -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)}).
|
||||
|
|
Loading…
Reference in New Issue