Remove max workers argument

Now that we're not spawning subprocesses like crazy it's far less
relevant to limit concurrency.
This commit is contained in:
adisbladis 2022-05-28 21:55:03 +08:00
parent 33b65aa13e
commit 6273e2cefb
2 changed files with 2 additions and 3 deletions

View file

@ -29,7 +29,7 @@ type goModDownload struct {
GoModSum string
}
func GeneratePkgs(goModPath string, goMod2NixPath string, numWorkers int) ([]*schema.Package, error) {
func GeneratePkgs(goModPath string, goMod2NixPath string) ([]*schema.Package, error) {
log.WithFields(log.Fields{
"modPath": goModPath,

View file

@ -13,7 +13,6 @@ import (
func main() {
var directory = flag.String("dir", "./", "Go project directory")
var maxJobs = flag.Int("jobs", 10, "Number of max parallel jobs")
var outDirFlag = flag.String("outdir", "", "output directory (if different from project directory)")
flag.Parse()
@ -26,7 +25,7 @@ func main() {
goMod2NixPath := filepath.Join(outDir, "gomod2nix.toml")
outFile := goMod2NixPath
pkgs, err := generate.GeneratePkgs(goModPath, goMod2NixPath, *maxJobs)
pkgs, err := generate.GeneratePkgs(goModPath, goMod2NixPath)
if err != nil {
panic(err)
}