homogenize worker count

Former-commit-id: 4352ac6694c08023cdf0e090723fac8af655cea4
This commit is contained in:
2023-12-20 08:14:07 +01:00
parent 7a31d5b07b
commit a36e830de3
4 changed files with 10 additions and 6 deletions

View File

@ -1,5 +1,7 @@
package obichunk
import "git.metabarcoding.org/obitools/obitools4/obitools4/pkg/obioptions"
type __options__ struct {
statsOn []string
categories []string
@ -24,8 +26,8 @@ func MakeOptions(setters []WithOption) Options {
navalue: "NA",
cacheOnDisk: false,
batchCount: 100,
batchSize: 5000,
parallelWorkers: 4,
batchSize: obioptions.CLIBatchSize(),
parallelWorkers: obioptions.CLIParallelWorkers(),
noSingleton: false,
}