projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Apply suggestion to lib/pleroma/pool/connections.ex
[akkoma]
/
lib
/
pleroma
/
pool
/
connections.ex
diff --git
a/lib/pleroma/pool/connections.ex
b/lib/pleroma/pool/connections.ex
index a444f822ff97ab0f8357271e5d70309302fc87bc..c4c5fd66c20785d23bb0ed66e7e2b8ce2e6a1ecf 100644
(file)
--- a/
lib/pleroma/pool/connections.ex
+++ b/
lib/pleroma/pool/connections.ex
@@
-128,7
+128,7
@@
defmodule Pleroma.Pool.Connections do
Logger.debug("checkin #{key}")
case state.conns[key] 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),
Logger.debug("reusing conn #{key}")
with time <- :os.system_time(:second),
@@
-145,7
+145,7
@@
defmodule Pleroma.Pool.Connections do
{:reply, conn, state}
end
{:reply, conn, state}
end
- %{gun_state:
gun_state} when gun_state == :down
->
+ %{gun_state:
:down}
->
{:reply, nil, state}
nil ->
{:reply, nil, state}
nil ->