소스 검색

Merge branch 'hotfix-the-hotfix' into 'develop'

ConnectionPool: fix the previous hotfix

See merge request pleroma/pleroma!2959
fix/disable-favicons-in-tests
rinpatch 3 년 전
부모
커밋
047a60c46e
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  1. +5
    -1
      lib/pleroma/tesla/middleware/connection_pool.ex

+ 5
- 1
lib/pleroma/tesla/middleware/connection_pool.ex 파일 보기

@@ -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
@@ -41,6 +42,9 @@ defmodule Pleroma.Tesla.Middleware.ConnectionPool do
ConnectionPool.release_conn(conn_pid)
err
end

err ->
err
end
end
end

불러오는 중...
취소
저장