fix(influxdb_bridge): no need to create atom for pool name

This commit is contained in:
Zaiming (Stone) Shi 2023-01-27 11:41:24 +01:00
parent d5f62d917e
commit 30a8a436b4
2 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
{erl_opts, [debug_info]}. {erl_opts, [debug_info]}.
{deps, [ {deps, [
{hstreamdb_erl, {git, "https://github.com/hstreamdb/hstreamdb_erl.git", {tag, "0.2.5"}}}, {hstreamdb_erl, {git, "https://github.com/hstreamdb/hstreamdb_erl.git", {tag, "0.2.5"}}},
{influxdb, {git, "https://github.com/emqx/influxdb-client-erl", {tag, "1.1.7"}}}, {influxdb, {git, "https://github.com/emqx/influxdb-client-erl", {tag, "1.1.8"}}},
{emqx, {path, "../../apps/emqx"}} {emqx, {path, "../../apps/emqx"}}
]}. ]}.

View File

@ -282,7 +282,7 @@ client_config(
{host, str(Host)}, {host, str(Host)},
{port, Port}, {port, Port},
{pool_size, erlang:system_info(schedulers)}, {pool_size, erlang:system_info(schedulers)},
{pool, binary_to_atom(InstId, utf8)}, {pool, InstId},
{precision, atom_to_binary(maps:get(precision, Config, ms), utf8)} {precision, atom_to_binary(maps:get(precision, Config, ms), utf8)}
] ++ protocol_config(Config). ] ++ protocol_config(Config).