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 f876bcb97f
commit cebde87114
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
{application, emqx_bridge_pulsar, [
{description, "EMQX Pulsar Bridge"},
{vsn, "0.1.1"},
{vsn, "0.1.2"},
{registered, []},
{applications, [
kernel,

View File

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