fix influx_client_pool
This commit is contained in:
parent
7cf373e04f
commit
db2144642b
@ -128,7 +128,7 @@ handle_cast({write_data, _Bucket, []}, State) ->
|
|||||||
{noreply, State};
|
{noreply, State};
|
||||||
handle_cast({write_data, Bucket, Points}, State = #state{pool_pid = PoolPid, buffers = Buffers}) ->
|
handle_cast({write_data, Bucket, Points}, State = #state{pool_pid = PoolPid, buffers = Buffers}) ->
|
||||||
Q = maps:get(Bucket, Buffers, queue:new()),
|
Q = maps:get(Bucket, Buffers, queue:new()),
|
||||||
NQ = lists:foldl(fun(Point, Q0) -> queue:in(Point, Q0) end, Q, Points),
|
NQ = queue:join(Q, queue:from_list(Points)),
|
||||||
|
|
||||||
%% 超过缓冲区设置的大小则批量导入
|
%% 超过缓冲区设置的大小则批量导入
|
||||||
Len = queue:len(NQ),
|
Len = queue:len(NQ),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user