mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-10 11:19:19 +00:00
Apply suggestion to lib/pleroma/pool/connections.ex
This commit is contained in:
parent
a21a66972f
commit
7eb6592992
1 changed files with 4 additions and 4 deletions
|
@ -180,10 +180,10 @@ defmodule Pleroma.Pool.Connections do
|
|||
state =
|
||||
with conn_key when is_binary(conn_key) <- compose_key_gun_info(conn_pid),
|
||||
{key, conn} <- find_conn(state.conns, conn_pid, conn_key),
|
||||
{true, key} <- {Process.alive?(conn_pid), key},
|
||||
time <- :os.system_time(:second),
|
||||
last_reference <- time - conn.last_reference,
|
||||
current_crf <- crf(last_reference, 100, conn.crf) do
|
||||
{true, key} <- {Process.alive?(conn_pid), key} do
|
||||
time = :os.system_time(:second)
|
||||
last_reference = time - conn.last_reference
|
||||
current_crf = crf(last_reference, 100, conn.crf)
|
||||
put_in(state.conns[key], %{
|
||||
conn
|
||||
| gun_state: :up,
|
||||
|
|
Loading…
Reference in a new issue