diff options
author | rinpatch <rinpatch@sdf.org> | 2020-09-05 21:27:06 +0300 |
---|---|---|
committer | rinpatch <rinpatch@sdf.org> | 2020-09-05 21:27:06 +0300 |
commit | 9d6aca5bee6f90f3c0af5a5353f052108c9def62 (patch) | |
tree | 9b959a2d5d278b4a64c693c2f95dc78dcc4a35c3 | |
parent | b42869424f43af82d40b9095092556647f852a22 (diff) | |
download | pleroma-9d6aca5bee6f90f3c0af5a5353f052108c9def62.tar.gz |
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
-rw-r--r-- | lib/pleroma/tesla/middleware/connection_pool.ex | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/pleroma/tesla/middleware/connection_pool.ex b/lib/pleroma/tesla/middleware/connection_pool.ex index 049db6eb3..2c5a2b53b 100644 --- a/lib/pleroma/tesla/middleware/connection_pool.ex +++ b/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 |