Increase DB connections to 10
Seeing if it helps sort out the DB pool getting exhausted Issue: #3
This commit is contained in:
parent
80f727a07c
commit
4ead6ba31b
1 changed files with 1 additions and 0 deletions
|
|
@ -217,6 +217,7 @@ func InitializeDatabase(ctx context.Context, uri string) error {
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
config.MaxConns = 10
|
||||||
db, err := pgxpool.NewWithConfig(ctx, config)
|
db, err := pgxpool.NewWithConfig(ctx, config)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf("new pool: %w", err)
|
return fmt.Errorf("new pool: %w", err)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue