mirror of
https://github.com/xjasonlyu/tun2socks.git
synced 2025-10-05 16:56:54 +08:00
Chore: delete common/automaxprocs
This commit is contained in:
@@ -1,11 +0,0 @@
|
||||
// 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) {}))
|
||||
}
|
5
main.go
5
main.go
@@ -6,9 +6,10 @@ import (
|
||||
"os/signal"
|
||||
"syscall"
|
||||
|
||||
_ "github.com/xjasonlyu/tun2socks/v2/common/automaxprocs"
|
||||
"github.com/xjasonlyu/tun2socks/v2/engine"
|
||||
"github.com/xjasonlyu/tun2socks/v2/log"
|
||||
|
||||
"go.uber.org/automaxprocs/maxprocs"
|
||||
)
|
||||
|
||||
var key = new(engine.Key)
|
||||
@@ -29,6 +30,8 @@ func init() {
|
||||
}
|
||||
|
||||
func main() {
|
||||
maxprocs.Set(maxprocs.Logger(func(string, ...any) {}))
|
||||
|
||||
engine.Insert(key)
|
||||
|
||||
checkErr := func(msg string, f func() error) {
|
||||
|
Reference in New Issue
Block a user