zf

zenflows testing
git clone https://s.sonu.ch/~srfsh/zf.git
Log | Files | Refs | Submodules | README | LICENSE

commit 355a97d353e823a0897fa8e0dbb6ad98bbfdfe2a
parent b6bb0a03fb499220a8d4ee204be57172e15b787a
Author: srfsh <dev@srf.sh>
Date:   Fri, 23 Sep 2022 16:47:58 +0300

Zenflows.HTTPC: fix style

Diffstat:
Msrc/zenflows/httpc.ex | 3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/zenflows/httpc.ex b/src/zenflows/httpc.ex @@ -24,7 +24,7 @@ def request(name, method, path, headers \\ [], body \\ nil, max \\ 5) do {"user-agent", _} -> headers false -> [{"user-agent", "zenflows/#{Application.spec(:zenflows, :vsn)}"} | headers] end - Enum.reduce_while(1..max, nil, fn x,_ -> + Enum.reduce_while(1..max, nil, fn x, _ -> case GenServer.call(name, {:request, method, path, headers, body}) do {:ok, result} -> {:halt, {:ok, result}} @@ -94,7 +94,6 @@ def handle_info(message, state) do end end - defp process_response({:status, request_ref, status}, state) do put_in(state.requests[request_ref].response[:status], status) end