Logger.debug("checkin #{key}")
case state.conns[key] do
- %{conn: conn, gun_state: gun_state} = current_conn when gun_state == :up ->
+ %{conn: conn, gun_state: :up} = current_conn ->
Logger.debug("reusing conn #{key}")
with time <- :os.system_time(:second),
{:reply, conn, state}
end
- %{gun_state: gun_state} when gun_state == :down ->
+ %{gun_state: :down} ->
{:reply, nil, state}
nil ->