summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrinpatch <rinpatch@sdf.org>2020-09-05 21:27:06 +0300
committerrinpatch <rinpatch@sdf.org>2020-09-05 21:27:06 +0300
commit9d6aca5bee6f90f3c0af5a5353f052108c9def62 (patch)
tree9b959a2d5d278b4a64c693c2f95dc78dcc4a35c3
parentb42869424f43af82d40b9095092556647f852a22 (diff)
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.ex3
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