chore: ensure default value's type be the first one in the union type
Co-authored-by: Zaiming (Stone) Shi <zmstone@gmail.com>
This commit is contained in:
parent
dbb8742e0e
commit
6a05663bd5
|
@ -266,7 +266,7 @@ common_listener_opts() ->
|
||||||
)},
|
)},
|
||||||
{max_connections,
|
{max_connections,
|
||||||
sc(
|
sc(
|
||||||
hoconsc:union([infinity, pos_integer()]),
|
hoconsc:union([pos_integer(), infinity]),
|
||||||
#{
|
#{
|
||||||
default => 1024,
|
default => 1024,
|
||||||
desc => ?DESC(gateway_common_listener_max_connections)
|
desc => ?DESC(gateway_common_listener_max_connections)
|
||||||
|
|
Loading…
Reference in New Issue