summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAlexander Strizhakov <alex.strizhakov@gmail.com>2020-03-03 13:05:28 +0300
committerAlexander Strizhakov <alex.strizhakov@gmail.com>2020-03-03 13:05:28 +0300
commit28ed4b41d03c6a137d198b8c67fb081c7ebfbbc6 (patch)
tree8b8769b9a5a00dfe133c156a8048385de3126f10 /lib
parent151dc4e387cfbb91b7cd85461ce0deb1e5f5fe30 (diff)
downloadpleroma-28ed4b41d03c6a137d198b8c67fb081c7ebfbbc6.tar.gz
pleroma-28ed4b41d03c6a137d198b8c67fb081c7ebfbbc6.zip
naming for checkin from pool timeout
Diffstat (limited to 'lib')
-rw-r--r--lib/pleroma/pool/connections.ex3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/pleroma/pool/connections.ex b/lib/pleroma/pool/connections.ex
index 84617815f..05fa8f7ad 100644
--- a/lib/pleroma/pool/connections.ex
+++ b/lib/pleroma/pool/connections.ex
@@ -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,