fix: GOMAXPROCS set to the number of cores available in 1.5

This commit is contained in:
Bo-Yi Wu
2017-01-05 14:25:52 +08:00
parent 73aca36a74
commit e5b916c057

View File

@@ -5,7 +5,6 @@ import (
"fmt"
"log"
"os"
"runtime"
"strconv"
"github.com/appleboy/gorush/config"
@@ -83,10 +82,6 @@ func createPIDFile() error {
return nil
}
func init() {
runtime.GOMAXPROCS(runtime.NumCPU())
}
func main() {
opts := config.ConfYaml{}