Files
tun2socks/common/automaxprocs/automaxprocs.go
2022-03-29 13:38:50 +08:00

12 lines
248 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, ...any) {}))
}