fix(pulsar): use a binary duration as default `health_check_interval`

Fixes https://emqx.atlassian.net/browse/EMQX-9885

The frontend needs the default value to match the duration (binary)
type to display correctly.
This commit is contained in:
Thales Macedo Garitezi 2023-05-15 09:05:21 -03:00
parent 857c7bb91d
commit 5960cc530a
1 changed files with 1 additions and 1 deletions

View File

@ -140,7 +140,7 @@ fields(producer_resource_opts) ->
lists:filtermap( lists:filtermap(
fun fun
({health_check_interval = Field, MetaFn}) -> ({health_check_interval = Field, MetaFn}) ->
{true, {Field, override_default(MetaFn, 1_000)}}; {true, {Field, override_default(MetaFn, <<"1s">>)}};
({Field, _Meta}) -> ({Field, _Meta}) ->
lists:member(Field, SupportedOpts) lists:member(Field, SupportedOpts)
end, end,