mirror of
https://github.com/astaxie/beego.git
synced 2025-06-19 18:20:40 +00:00
beego default set GOMAXPROCS to NumCPU
This commit is contained in:
2
beego.go
2
beego.go
@ -9,6 +9,7 @@ import (
|
||||
"net/http/fcgi"
|
||||
"os"
|
||||
"path"
|
||||
"runtime"
|
||||
"strconv"
|
||||
)
|
||||
|
||||
@ -249,5 +250,6 @@ func Run() {
|
||||
Warn(err)
|
||||
}
|
||||
}
|
||||
runtime.GOMAXPROCS(runtime.NumCPU())
|
||||
BeeApp.Run()
|
||||
}
|
||||
|
Reference in New Issue
Block a user