go-zero/core/sysx/automaxprocs.go
2020-07-26 17:09:05 +08:00

9 lines
178 B
Go

package sysx
import "go.uber.org/automaxprocs/maxprocs"
// Automatically set GOMAXPROCS to match Linux container CPU quota.
func init() {
maxprocs.Set(maxprocs.Logger(nil))
}