From 6cfc8cb1f87098cb9ecb1d6997f4a677579d00c7 Mon Sep 17 00:00:00 2001 From: "K. Pastor-Gerte" Date: Sun, 16 Feb 2025 02:07:59 +0300 Subject: [PATCH] update default pool size --- postgres_pgx/plugin.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/postgres_pgx/plugin.go b/postgres_pgx/plugin.go index 5babbd7..b54f8e4 100755 --- a/postgres_pgx/plugin.go +++ b/postgres_pgx/plugin.go @@ -53,7 +53,7 @@ type Config struct { Username string `env:"USERNAME" envDefault:"postgres" comment:"The username to connect with"` Password string `env:"PASSWORD" envDefault:"" comment:"The password to connect with"` SSLMode string `env:"SSLMODE" envDefault:"disable" comment:"SSL mode (disable, allow, prefer, require, verify-ca, verify-full)"` - MaxPoolSize int `env:"MAX_POOL_SIZE" envDefault:"2" comment:"Max pool size"` + MaxPoolSize int `env:"MAX_POOL_SIZE" envDefault:"10" comment:"Max pool size"` ConnAttempts int `env:"CONN_ATTEMPTS" envDefault:"10" comment:"Connection attempts"` ConnTimeout time.Duration `env:"CONN_TIMEOUT" envDefault:"15s" comment:"Connection timeout"` MigrationsDir string `env:"MIGRATIONS_DIR" comment:"Migrations directory"`