Browse Source

Remove call to set GOMAXPROCS (#4010)

* Remove call to set GOMAXPROCS

* Remove runtime import
Aaron Wood 8 năm trước cách đây
mục cha
commit
64788ffff6
1 tập tin đã thay đổi với 0 bổ sung2 xóa
  1. 0 2
      gogs.go

+ 0 - 2
gogs.go

@@ -9,7 +9,6 @@ package main
 
 import (
 	"os"
-	"runtime"
 
 	"github.com/urfave/cli"
 
@@ -20,7 +19,6 @@ import (
 const APP_VER = "0.9.115.0103"
 
 func init() {
-	runtime.GOMAXPROCS(runtime.NumCPU())
 	setting.AppVer = APP_VER
 }