Merge pull request #368 from realab/feature/automaxprocs

integrate automaxprocs in project template
pull/375/head
Terry.Mao 5 years ago committed by GitHub
commit f3c2ec2624
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      tool/kratos/template.go

@ -76,6 +76,8 @@ import (
"{{.ModuleName}}/internal/service" "{{.ModuleName}}/internal/service"
"github.com/bilibili/kratos/pkg/conf/paladin" "github.com/bilibili/kratos/pkg/conf/paladin"
"github.com/bilibili/kratos/pkg/log" "github.com/bilibili/kratos/pkg/log"
_ "go.uber.org/automaxprocs"
) )
func main() { func main() {
@ -127,6 +129,8 @@ import (
"{{.ModuleName}}/internal/service" "{{.ModuleName}}/internal/service"
"github.com/bilibili/kratos/pkg/conf/paladin" "github.com/bilibili/kratos/pkg/conf/paladin"
"github.com/bilibili/kratos/pkg/log" "github.com/bilibili/kratos/pkg/log"
_ "go.uber.org/automaxprocs"
) )
func main() { func main() {

Loading…
Cancel
Save