fix http endpoint

This commit is contained in:
anlicheng 2025-11-14 17:06:39 +08:00
parent c1f487959a
commit 8188e06730

View File

@ -99,7 +99,8 @@ handle_info({next_data, Id, Metric}, State = #state{buffer = Buffer, endpoint =
{ok, RespBody} = hackney:body(ClientRef),
hackney:close(ClientRef),
lager:debug("[endpoint_http] url: ~p, http_code: ~p, response is: ~p", [Url, HttpCode, RespBody]),
{noreply, State};
NBuffer = endpoint_buffer:ack(Id, Buffer),
{noreply, State#state{buffer = NBuffer}};
{error, Reason} ->
lager:warning("[endpoint_http] url: ~p, get error: ~p", [Url, Reason]),
{noreply, State}