Explorar el Código

ConnectionPool: fix the previous hotfix

I rushed the hotfix and forgot how `pop_in` actually works,
I want to die. We need some integration tests for the HTTP client
fix/disable-favicons-in-tests
rinpatch hace 3 años
padre
commit
9d6aca5bee
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. +2
    -1
      lib/pleroma/tesla/middleware/connection_pool.ex

+ 2
- 1
lib/pleroma/tesla/middleware/connection_pool.ex Ver fichero

@@ -32,7 +32,8 @@ defmodule Pleroma.Tesla.Middleware.ConnectionPool do
{:ok, env} ->
unless opts[:adapter][:body_as] == :chunks do
ConnectionPool.release_conn(conn_pid)
{:ok, pop_in(env.opts[:adapter][:conn])}
{_, res} = pop_in(env.opts[:adapter][:conn])
{:ok, res}
else
{:ok, env}
end


Cargando…
Cancelar
Guardar