fix influxdb

This commit is contained in:
anlicheng 2024-09-03 14:45:28 +08:00
parent 5b9675ba7f
commit 4883a5d519

View File

@ -91,7 +91,8 @@ init([]) ->
{ok, PoolPid} = poolboy:start_link([{size, PoolSize}, {max_overflow, PoolSize}, {worker_module, influx_client}], WorkerArgs),
%% buckets
SuperDeviceUUIDs = iot_env:get_value(super_device_uuids, []),
catch create_buckets(PoolPid, SuperDeviceUUIDs),
Result = catch create_buckets(PoolPid, SuperDeviceUUIDs),
lager:debug("[influx_client_pool] create buckets result is: ~p", [Result]),
{ok, #state{pool_pid = PoolPid}}.