diff options
author | Jakob Borg <jakob@kastelo.net> | 2024-02-26 13:12:57 +0100 |
---|---|---|
committer | Jakob Borg <jakob@kastelo.net> | 2024-02-26 13:12:57 +0100 |
commit | 2d968d46b78b4a37e88ab17bdda5870d84e86aa4 (patch) | |
tree | 5e680c45be0f3fd2e8d7bce2a36b812bde0907b2 | |
parent | 86c4cafc96ecd935d2baf1947a238f280fb76e2c (diff) |
cmd/syncthing: Remove legacy GOMAXPROCS handling (ref #9436)
-rw-r--r-- | cmd/syncthing/main.go | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/cmd/syncthing/main.go b/cmd/syncthing/main.go index 6d22162900..012aa92c63 100644 --- a/cmd/syncthing/main.go +++ b/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 { |