fix http endpoint
This commit is contained in:
parent
c1f487959a
commit
8188e06730
@ -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}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user