chore: more clear funcation name

This commit is contained in:
JianBo He 2023-06-09 10:44:17 +08:00
parent 6a05663bd5
commit 72311a546b
1 changed files with 5 additions and 5 deletions

View File

@ -304,7 +304,7 @@ do_listeners_cluster_status(Listeners) ->
status => #{ status => #{
running => Running, running => Running,
current_connections => Curr, current_connections => Curr,
max_connections => int(Max) max_connections => ensure_integer_or_infinity(Max)
} }
} }
} }
@ -313,13 +313,13 @@ do_listeners_cluster_status(Listeners) ->
Listeners Listeners
). ).
int(infinity) -> ensure_integer_or_infinity(infinity) ->
infinity; infinity;
int(<<"infinity">>) -> ensure_integer_or_infinity(<<"infinity">>) ->
infinity; infinity;
int(B) when is_binary(B) -> ensure_integer_or_infinity(B) when is_binary(B) ->
binary_to_integer(B); binary_to_integer(B);
int(I) when is_integer(I) -> ensure_integer_or_infinity(I) when is_integer(I) ->
I. I.
aggregate_listener_status(NodeStatus) -> aggregate_listener_status(NodeStatus) ->