naming for checkin from pool timeout
This commit is contained in:
parent
151dc4e387
commit
28ed4b41d0
4 changed files with 5 additions and 5 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue