Commit eb06435f authored by astaxie's avatar astaxie

change position GOMAXPROCS to init that user can set own GOMAXPROCS

parent 328f4566
......@@ -79,6 +79,7 @@ func init() {
XSRFKEY = "beegoxsrf"
XSRFExpire = 60
ParseConfig()
runtime.GOMAXPROCS(runtime.NumCPU())
}
type App struct {
......@@ -298,7 +299,6 @@ func Run() {
Warn(err)
}
}
runtime.GOMAXPROCS(runtime.NumCPU())
registerErrorHander()
BeeApp.Run()
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment