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