mirror of
https://github.com/xjasonlyu/tun2socks.git
synced 2025-10-06 17:26:58 +08:00
12 lines
248 B
Go
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) {}))
|
|
}
|