Skip to content

Commit

Permalink
Refactor function name
Browse files Browse the repository at this point in the history
  • Loading branch information
kesonan committed Jul 9, 2022
1 parent 40ec465 commit e420eec
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tools/goctl/rpc/generator/gencall.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ func (g *Generator) GenCall(ctx DirContext, proto parser.Proto, cfg *conf.Config
return g.genCallInCompatibility(ctx, proto, cfg)
}

return g.genCall(ctx, proto, cfg)
return g.genCallGroup(ctx, proto, cfg)
}

func (g *Generator) genCall(ctx DirContext, proto parser.Proto, cfg *conf.Config) error {
func (g *Generator) genCallGroup(ctx DirContext, proto parser.Proto, cfg *conf.Config) error {
dir := ctx.GetCall()
head := util.GetHead(proto.Name)
for _, service := range proto.Service {
Expand Down
4 changes: 2 additions & 2 deletions tools/goctl/rpc/generator/genlogic.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func (g *Generator) GenLogic(ctx DirContext, proto parser.Proto, cfg *conf.Confi
return g.genLogicInCompatibility(ctx, proto, cfg)
}

return g.genLogic(ctx, proto, cfg)
return g.genLogicGroup(ctx, proto, cfg)
}

func (g *Generator) genLogicInCompatibility(ctx DirContext, proto parser.Proto,
Expand Down Expand Up @@ -73,7 +73,7 @@ func (g *Generator) genLogicInCompatibility(ctx DirContext, proto parser.Proto,
return nil
}

func (g *Generator) genLogic(ctx DirContext, proto parser.Proto, cfg *conf.Config) error {
func (g *Generator) genLogicGroup(ctx DirContext, proto parser.Proto, cfg *conf.Config) error {
dir := ctx.GetLogic()
for _, item := range proto.Service {
serviceName := item.Name
Expand Down

0 comments on commit e420eec

Please sign in to comment.