Apply suggestion to lib/pleroma/pool/connections.ex
authorAlexander Strizhakov <alex.strizhakov@gmail.com>
Tue, 3 Mar 2020 09:29:51 +0000 (09:29 +0000)
committerAlexander Strizhakov <alex.strizhakov@gmail.com>
Tue, 3 Mar 2020 09:29:51 +0000 (09:29 +0000)
lib/pleroma/pool/connections.ex

index a444f822ff97ab0f8357271e5d70309302fc87bc..c5098cd867377b494e741533905fe6b026429882 100644 (file)
@@ -128,7 +128,7 @@ defmodule Pleroma.Pool.Connections do
     Logger.debug("checkin #{key}")
 
     case state.conns[key] do
-      %{conn: conn, gun_state: gun_state} = current_conn when gun_state == :up ->
+      %{conn: conn, gun_state: :up} = current_conn ->
         Logger.debug("reusing conn #{key}")
 
         with time <- :os.system_time(:second),