Chore: use uber max procs

This commit is contained in:
Dreamacro
2021-10-27 21:27:19 +08:00
parent a7aea12aa6
commit ebbc9604ce
4 changed files with 17 additions and 3 deletions

View File

@ -14,6 +14,8 @@ import (
"github.com/Dreamacro/clash/hub"
"github.com/Dreamacro/clash/hub/executor"
"github.com/Dreamacro/clash/log"
"go.uber.org/automaxprocs/maxprocs"
)
var (
@ -44,6 +46,7 @@ func init() {
}
func main() {
maxprocs.Set(maxprocs.Logger(func(string, ...interface{}) {}))
if version {
fmt.Printf("Clash %s %s %s with %s %s\n", C.Version, runtime.GOOS, runtime.GOARCH, runtime.Version(), C.BuildTime)
return