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
1 changed files with 0 additions and 5 deletions

View File

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