Files
tun2socks/common/automaxprocs/automaxprocs.go
2022-01-28 15:01:04 +08:00

12 lines
256 B
Go

// Package automaxprocs automatically sets GOMAXPROCS to match the Linux
// container CPU quota, if any.
package automaxprocs
import (
"go.uber.org/automaxprocs/maxprocs"
)
func init() {
maxprocs.Set(maxprocs.Logger(func(string, ...interface{}) {}))
}