ConnectionPool middleware: handle connection opening errors
authorrinpatch <rinpatch@sdf.org>
Sat, 5 Sep 2020 18:36:17 +0000 (21:36 +0300)
committerrinpatch <rinpatch@sdf.org>
Sat, 5 Sep 2020 18:36:17 +0000 (21:36 +0300)
lib/pleroma/tesla/middleware/connection_pool.ex

index 2c5a2b53be0e60d2237a57f6e2441960b9455f03..056e736ce8fd82d281ac417d9d22a9ea07056f4e 100644 (file)
@@ -42,6 +42,9 @@ defmodule Pleroma.Tesla.Middleware.ConnectionPool do
             ConnectionPool.release_conn(conn_pid)
             err
         end
+
+      err ->
+        err
     end
   end
 end