eb06435f by astaxie

change position GOMAXPROCS to init that user can set own GOMAXPROCS

1 parent 328f4566
Showing 1 changed file with 1 additions and 1 deletions
......@@ -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()
}
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!