pool size doesn't need to be that big

This commit is contained in:
Andre Medeiros 2021-07-22 21:11:27 -04:00
parent d9b1179717
commit 7692971b89

View file

@ -39,8 +39,9 @@ func WorkerCmd(ctx context.Context) *cobra.Command {
defer statsd.Close()
consumers := runtime.NumCPU() * multiplier
poolSize := multiplier / 8
db, err := cmdutil.NewDatabasePool(ctx, multiplier)
db, err := cmdutil.NewDatabasePool(ctx, poolSize)
if err != nil {
return err
}