make db pool size configurable

This commit is contained in:
Dawid Wysokiński 2020-12-22 18:20:30 +01:00
parent b2d4135372
commit 0bc1cdbd94
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ func main() {
Password: os.Getenv("DB_PASSWORD"),
Database: os.Getenv("DB_NAME"),
Addr: os.Getenv("DB_HOST") + ":" + os.Getenv("DB_PORT"),
PoolSize: runtime.NumCPU() * 5,
PoolSize: mustParseEnvToInt("DB_POOL_SIZE"),
}
dbFields := logrus.Fields{
"user": dbOptions.User,