naming for checkin from pool timeout

This commit is contained in:
Alexander Strizhakov 2020-03-03 13:05:28 +03:00
commit 28ed4b41d0
No known key found for this signature in database
GPG key ID: 022896A53AEF1381
4 changed files with 5 additions and 5 deletions

View file

@ -34,7 +34,7 @@ defmodule Pleroma.Pool.Connections do
def checkin(url, name) when is_binary(url), do: checkin(URI.parse(url), name)
def checkin(%URI{} = uri, name) do
timeout = Config.get([:connections_pool, :receive_connection_timeout], 250)
timeout = Config.get([:connections_pool, :checkin_timeout], 250)
GenServer.call(
name,
@ -184,6 +184,7 @@ defmodule Pleroma.Pool.Connections 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,