mirror of https://github.com/gofiber/fiber.git
🉑 revert GOMAXPROCS in master process
parent
17959c0382
commit
f6f2f769c1
|
@ -61,8 +61,7 @@ func (app *App) prefork(addr string, tlsConfig *tls.Config) (err error) {
|
|||
err error
|
||||
}
|
||||
// create variables
|
||||
// set 'max' to the previous value of GOMAXPROCS and set GOMAXPROCS to 1 for the master process;
|
||||
var max = runtime.GOMAXPROCS(1)
|
||||
var max = runtime.GOMAXPROCS(0)
|
||||
var childs = make(map[int]*exec.Cmd)
|
||||
var channel = make(chan child, max)
|
||||
|
||||
|
|
Loading…
Reference in New Issue