mirror of
https://github.com/pomerium/pomerium.git
synced 2025-06-06 04:42:56 +02:00
core/go: use max procs (#4766)
* core/go: use max procs * update test * logging
This commit is contained in:
parent
9db828ffd4
commit
ce8abde236
5 changed files with 10 additions and 12 deletions
|
@ -20,7 +20,7 @@ func Build[T any](
|
|||
builders ...BuilderFunc[T],
|
||||
) ([]*T, []error) {
|
||||
eg, ctx := errgroup.WithContext(ctx)
|
||||
eg.SetLimit(runtime.NumCPU()/2 + 1)
|
||||
eg.SetLimit(runtime.GOMAXPROCS(0)/2 + 1)
|
||||
|
||||
results := make([]*T, len(builders))
|
||||
errors := make([]error, len(builders))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue