Increase DB connections to 10

Seeing if it helps sort out the DB pool getting exhausted

Issue: #3
This commit is contained in:
Eli Ribble 2026-05-19 20:32:35 +00:00
parent 80f727a07c
commit 4ead6ba31b
No known key found for this signature in database

View file

@ -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)