ddc3d7d5 by astaxie

beego default set GOMAXPROCS to NumCPU

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