removing unused checkin_timeout option
This commit is contained in:
parent
d645b7114e
commit
a563203618
@ -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,
|
||||
|
@ -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.",
|
||||
|
@ -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.
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user