removing unused checkin_timeout option

This commit is contained in:
Alexander Strizhakov 2020-04-29 16:31:37 +03:00
parent d645b7114e
commit a563203618
No known key found for this signature in database
GPG Key ID: 022896A53AEF1381
4 changed files with 1 additions and 9 deletions

View File

@ -606,7 +606,6 @@ config :pleroma, Pleroma.Repo,
prepare: :unnamed
config :pleroma, :connections_pool,
checkin_timeout: 250,
max_connections: 250,
max_idle_time: 1,
closing_idle_conns_interval: 1,

View File

@ -2930,12 +2930,6 @@ config :pleroma, :config_description, [
description: "Advanced settings for `gun` connections pool",
children: [
%{
key: :checkin_timeout,
type: :integer,
description: "Timeout to checkin connection from pool. Default: 250ms.",
suggestions: [250]
},
%{
key: :max_connections,
type: :integer,
description: "Maximum number of connections in the pool. Default: 250 connections.",

View File

@ -396,7 +396,6 @@ Advanced settings for connections pool. Pool with opened connections. These conn
For big instances it's recommended to increase `max_connections` up to 500-1000. It will increase memory usage, but federation would work faster.
* `:checkin_timeout` - timeout to checkin connection from pool. Default: 250ms.
* `:max_connections` - maximum number of connections in the pool. Default: 250 connections.
* `:max_idle_time` - maximum of time in minutes, while connection can be idle. Default: 1 minute.
* `:closing_idle_conns_interval` - interval between cleaning pool in minutes from idle connections. Default: 1 minute.

View File

@ -784,7 +784,7 @@ defmodule Pleroma.Pool.ConnectionsTest do
test "count/1" do
name = :test_count
{:ok, _} = Connections.start_link({name, [checkin_timeout: 150]})
{:ok, _} = Connections.start_link({name, []})
assert Connections.count(name) == 0
Connections.add_conn(name, "1", %Conn{conn: self()})
assert Connections.count(name) == 1