Skip to content

Commit

Permalink
feat: GOMAXPROCS sets the maximum number of CPUs that can be executing (
Browse files Browse the repository at this point in the history
go-gorm#853)

simultaneously and returns the previous setting. It defaults to
the value of runtime.NumCPU
wulorn authored May 19, 2023
1 parent 52edd30 commit d89f033
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions generator.go
Original file line number Diff line number Diff line change
@@ -48,8 +48,6 @@ type RowsAffected int64

var concurrent = runtime.NumCPU()

func init() { runtime.GOMAXPROCS(runtime.NumCPU()) }

// NewGenerator create a new generator
func NewGenerator(cfg Config) *Generator {
if err := cfg.Revise(); err != nil {

0 comments on commit d89f033

Please sign in to comment.