integrate automaxprocs in project template

pull/368/head
realityone 5 years ago
parent 457908d64b
commit 3f88ce925a
No known key found for this signature in database
GPG Key ID: ABD4DB50620408C3
  1. 4
      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() {

Loading…
Cancel
Save