Apply go fix -minmax ./...

This commit is contained in:
Michael Eischer
2026-07-22 22:25:56 +02:00
parent 0e4f288e83
commit 8ed263c6dd
4 changed files with 4 additions and 17 deletions
+1 -4
View File
@@ -207,10 +207,7 @@ func buildForTarget(sourceDir, outputDir, goos, goarch string) (filename string)
func buildTargets(sourceDir, outputDir string, targets map[string][]string) {
start := time.Now()
// the go compiler is already parallelized, thus reduce the concurrency a bit
workers := runtime.GOMAXPROCS(0) / 4
if workers < 1 {
workers = 1
}
workers := max(runtime.GOMAXPROCS(0)/4, 1)
msg("building with %d workers", workers)
type Job struct{ GOOS, GOARCH string }