comment runtime.GOMAXPROCS to avoid concurrent issue

This commit is contained in:
Lei Xue
2016-12-11 20:56:12 +08:00
parent 42949563ac
commit c85b0f045f

View File

@@ -20,7 +20,6 @@ import (
"fmt" "fmt"
"os" "os"
"os/signal" "os/signal"
"runtime"
"strings" "strings"
"syscall" "syscall"
@@ -89,7 +88,8 @@ func createDaemon(host, driver, level string) error {
targetDriver.NewTarget(tgtname, config) targetDriver.NewTarget(tgtname, config)
} }
runtime.GOMAXPROCS(runtime.NumCPU()) // comment this to avoid concurrent issue
// runtime.GOMAXPROCS(runtime.NumCPU())
// run a service // run a service
go targetDriver.Run() go targetDriver.Run()