mirror of
https://github.com/restic/restic.git
synced 2026-11-05 06:49:21 +00:00
Apply go fix -minmax ./...
This commit is contained in:
1 parent
0e4f288e83
commit
8ed263c6dd
4 files changed
+4
-17
No files matched your search
@@ -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 }
|
||||
|
||||
Reference in new issue
Block a user