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:
JianBo He 2023-06-09 09:50:24 +08:00 committed by JianBo He
parent dbb8742e0e
commit 6a05663bd5
1 changed files with 1 additions and 1 deletions

View File

@ -266,7 +266,7 @@ common_listener_opts() ->
)},
{max_connections,
sc(
hoconsc:union([infinity, pos_integer()]),
hoconsc:union([pos_integer(), infinity]),
#{
default => 1024,
desc => ?DESC(gateway_common_listener_max_connections)