fix: static checks failures
This commit is contained in:
parent
ba9dcbcff0
commit
2ea903c5ac
|
@ -271,7 +271,7 @@ protocol_config(
|
||||||
} = Config
|
} = Config
|
||||||
) ->
|
) ->
|
||||||
[
|
[
|
||||||
{dbname, DbName}
|
{dbname, str(DbName)}
|
||||||
] ++ auth(Config) ++
|
] ++ auth(Config) ++
|
||||||
ssl_config(SSL).
|
ssl_config(SSL).
|
||||||
|
|
||||||
|
@ -288,7 +288,7 @@ ssl_config(SSL = #{enable := true}) ->
|
||||||
|
|
||||||
auth(#{username := Username, password := Password}) ->
|
auth(#{username := Username, password := Password}) ->
|
||||||
[
|
[
|
||||||
{auth, {basic, #{username => Username, password => Password}}}
|
{auth, {basic, #{username => str(Username), password => str(Password)}}}
|
||||||
];
|
];
|
||||||
auth(_) ->
|
auth(_) ->
|
||||||
[].
|
[].
|
||||||
|
@ -397,8 +397,6 @@ parse_batch_data(InstId, BatchData, SyntaxLines) ->
|
||||||
{[Points | ListOfPoints], ErrAccIn};
|
{[Points | ListOfPoints], ErrAccIn};
|
||||||
{error, ErrorPoints} ->
|
{error, ErrorPoints} ->
|
||||||
log_error_points(InstId, ErrorPoints),
|
log_error_points(InstId, ErrorPoints),
|
||||||
{ListOfPoints, ErrAccIn + 1};
|
|
||||||
_ ->
|
|
||||||
{ListOfPoints, ErrAccIn + 1}
|
{ListOfPoints, ErrAccIn + 1}
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
|
|
|
@ -49,7 +49,6 @@ end_per_suite(_Config) ->
|
||||||
emqx_conf, emqx_bridge, emqx_resource, emqx_rule_engine
|
emqx_conf, emqx_bridge, emqx_resource, emqx_rule_engine
|
||||||
]),
|
]),
|
||||||
_ = application:stop(emqx_connector),
|
_ = application:stop(emqx_connector),
|
||||||
_ = application:stop(greptimedb),
|
|
||||||
ok.
|
ok.
|
||||||
|
|
||||||
init_per_group(GreptimedbType, Config0) when
|
init_per_group(GreptimedbType, Config0) when
|
||||||
|
@ -145,6 +144,7 @@ end_per_group(Group, Config) when
|
||||||
emqx_common_test_helpers:reset_proxy(ProxyHost, ProxyPort),
|
emqx_common_test_helpers:reset_proxy(ProxyHost, ProxyPort),
|
||||||
ehttpc_sup:stop_pool(EHttpcPoolName),
|
ehttpc_sup:stop_pool(EHttpcPoolName),
|
||||||
delete_bridge(Config),
|
delete_bridge(Config),
|
||||||
|
_ = application:stop(greptimedb),
|
||||||
ok;
|
ok;
|
||||||
end_per_group(_Group, _Config) ->
|
end_per_group(_Group, _Config) ->
|
||||||
ok.
|
ok.
|
||||||
|
|
Loading…
Reference in New Issue