Don't override maximum pool size from connection string

This commit is contained in:
Ske 2021-08-24 11:22:41 +02:00
parent 1aa4cbf3d8
commit 83212b4bb2

View File

@ -37,7 +37,7 @@ namespace PluralKit.Core
_connectionString = new NpgsqlConnectionStringBuilder(_config.Database) _connectionString = new NpgsqlConnectionStringBuilder(_config.Database)
{ {
Pooling = true, MaxPoolSize = 500, Enlist = false, NoResetOnClose = true, Pooling = true, Enlist = false, NoResetOnClose = true,
// Lower timeout than default (15s -> 2s), should ideally fail-fast instead of hanging // Lower timeout than default (15s -> 2s), should ideally fail-fast instead of hanging
Timeout = 2 Timeout = 2