change position GOMAXPROCS to init that user can set own GOMAXPROCS
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 | } | ... | ... |
-
Please register or sign in to post a comment