Skip to content

Commit

Permalink
fix(zrpcclient): fix gen zrpcclient
Browse files Browse the repository at this point in the history
  • Loading branch information
jaronnie committed Jul 19, 2024
1 parent c68cc1b commit 826e036
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .template/app/cmd/server.go.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ func Start(cfgFile string) {

func start(ctx *svc.ServiceContext) {
s := server.RegisterZrpc(ctx.Config, ctx)
s.AddUnaryInterceptors(middlewares.ServerValidationUnaryInterceptor)
s.AddUnaryInterceptors(middleware.ServerValidationUnaryInterceptor)
gw := gateway.MustNewServer(ctx.Config.Gateway.GatewayConf)
// gw add api routes
Expand Down
2 changes: 1 addition & 1 deletion cmd/gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ var genZRpcClientCmd = &cobra.Command{
cobra.CheckErr(err)
if genzrpcclient.Scope == "" {
genzrpcclient.Scope = filepath.Base(mod.Path)
genzrpcclient.Scope = strings.ReplaceAll(gensdk.Scope, "-", "_")
genzrpcclient.Scope = strings.ReplaceAll(genzrpcclient.Scope, "-", "_")
}
},
RunE: genzrpcclient.Generate,
Expand Down

0 comments on commit 826e036

Please sign in to comment.