remove runtime.GOMAXPROCS

pull/1123/head
Minh Doan 6 years ago committed by Minh Doan
parent 9b466c811d
commit d6aac32bf4
  1. 4
      cmd/client/txgen/main.go
  2. 4
      cmd/harmony/main.go

@ -7,7 +7,6 @@ import (
"math/rand"
"os"
"path"
"runtime"
"sync"
"time"
@ -135,8 +134,6 @@ func main() {
if *versionFlag {
printVersion(os.Args[0])
}
// Add GOMAXPROCS to achieve max performance.
runtime.GOMAXPROCS(1024)
// Logging setup
utils.SetLogContext(*port, *ip)
utils.SetLogVerbosity(log.Lvl(*verbosity))
@ -240,7 +237,6 @@ pushLoop:
select {
case shardID := <-readySignal:
lock := sync.Mutex{}
utils.GetLogInstance().Warn("STARTING TX GEN PUSH LOOP", "gomaxprocs", runtime.GOMAXPROCS(0))
txs, err := GenerateSimulatedTransactionsAccount(uint32(shardID), txGen, setting)
if err != nil {
utils.GetLogInstance().Debug("Error in Generating Txns", "Err", err)

@ -7,7 +7,6 @@ import (
"math/rand"
"os"
"path"
"runtime"
"time"
"github.com/ethereum/go-ethereum/ethdb"
@ -149,9 +148,6 @@ func initSetup() {
// Set default keystore Dir
hmykey.DefaultKeyStoreDir = *keystoreDir
// Add GOMAXPROCS to achieve max performance.
runtime.GOMAXPROCS(1024)
// Set up randomization seed.
rand.Seed(int64(time.Now().Nanosecond()))

Loading…
Cancel
Save