fix influxdb
This commit is contained in:
parent
5b9675ba7f
commit
4883a5d519
@ -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}}.
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user