chore: apply code review

This commit is contained in:
Zhongwen Deng 2023-03-14 10:54:05 +08:00
parent cec399c602
commit 80205d9704
3 changed files with 3 additions and 3 deletions

View File

@ -2818,7 +2818,7 @@ is_port_number(Port) ->
parse_port(Port) -> parse_port(Port) ->
case string:to_integer(string:strip(Port)) of case string:to_integer(string:strip(Port)) of
{P, ""} when P < 0 -> throw("port_number_too_small"); {P, ""} when P < 0 -> throw("port_number_must_be_positive");
{P, ""} when P > 65535 -> throw("port_number_too_large"); {P, ""} when P > 65535 -> throw("port_number_too_large");
{P, ""} -> P; {P, ""} -> P;
_ -> throw("bad_port_number") _ -> throw("bad_port_number")

View File

@ -1 +1 @@
Fix crash when `statsd.server` is empty Fix crash when `statsd.server` is set to an empty string.

View File

@ -1 +1 @@
修复 `statsd.server` 为空时启动崩溃的问题 修复 `statsd.server` 配置为空字符串时启动崩溃的问题