From 3f88ce925a70a960b1c2f1cdd40957111cbff84c Mon Sep 17 00:00:00 2001 From: realityone Date: Tue, 8 Oct 2019 10:53:48 +0800 Subject: [PATCH] integrate automaxprocs in project template --- tool/kratos/template.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tool/kratos/template.go b/tool/kratos/template.go index 2befe32fb..98665ebb7 100644 --- a/tool/kratos/template.go +++ b/tool/kratos/template.go @@ -76,6 +76,8 @@ import ( "{{.Name}}/internal/service" "github.com/bilibili/kratos/pkg/conf/paladin" "github.com/bilibili/kratos/pkg/log" + + _ "go.uber.org/automaxprocs" ) func main() { @@ -127,6 +129,8 @@ import ( "{{.Name}}/internal/service" "github.com/bilibili/kratos/pkg/conf/paladin" "github.com/bilibili/kratos/pkg/log" + + _ "go.uber.org/automaxprocs" ) func main() {