瀏覽代碼

cmd/syncthing: Remove legacy GOMAXPROCS handling (ref #9436)

Jakob Borg 1 年之前
父節點
當前提交
2d968d46b7
共有 1 個文件被更改,包括 0 次插入5 次删除
  1. 0 5
      cmd/syncthing/main.go

+ 0 - 5
cmd/syncthing/main.go

@@ -22,7 +22,6 @@ import (
 	"path"
 	"path/filepath"
 	"regexp"
-	"runtime"
 	"runtime/pprof"
 	"sort"
 	"strconv"
@@ -651,10 +650,6 @@ func syncthingMain(options serveOptions) {
 
 	setupSignalHandling(app)
 
-	if os.Getenv("GOMAXPROCS") == "" {
-		runtime.GOMAXPROCS(runtime.NumCPU())
-	}
-
 	if options.DebugProfileCPU {
 		f, err := os.Create(fmt.Sprintf("cpu-%d.pprof", os.Getpid()))
 		if err != nil {