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() { ...@@ -79,6 +79,7 @@ func init() {
79 XSRFKEY = "beegoxsrf" 79 XSRFKEY = "beegoxsrf"
80 XSRFExpire = 60 80 XSRFExpire = 60
81 ParseConfig() 81 ParseConfig()
82 runtime.GOMAXPROCS(runtime.NumCPU())
82 } 83 }
83 84
84 type App struct { 85 type App struct {
...@@ -298,7 +299,6 @@ func Run() { ...@@ -298,7 +299,6 @@ func Run() {
298 Warn(err) 299 Warn(err)
299 } 300 }
300 } 301 }
301 runtime.GOMAXPROCS(runtime.NumCPU())
302 registerErrorHander() 302 registerErrorHander()
303 BeeApp.Run() 303 BeeApp.Run()
304 } 304 }
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!