increase maxprocs

This commit is contained in:
Andre Medeiros 2022-10-31 16:04:08 -04:00
parent 00bd99b60e
commit 3750374aa0

View file

@ -49,6 +49,8 @@ func WorkerCmd(ctx context.Context) *cobra.Command {
consumers := runtime.NumCPU() * multiplier
poolSize := multiplier / 4
runtime.GOMAXPROCS(poolSize)
db, err := cmdutil.NewDatabasePool(ctx, poolSize)
if err != nil {
return err