Skip to content

Commit

Permalink
optimize: recursive
Browse files Browse the repository at this point in the history
  • Loading branch information
HeyJavaBean committed Dec 6, 2024
1 parent d25f95f commit b559bfb
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions sdk/invoke.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,10 @@ func init() {
_ = g.RegisterBackend(new(fastgo.FastGoBackend))
}

var (
g generator.Generator
)
var g generator.Generator

// InvokeThriftgo is the core logic of thriftgo, from parse idl to generate code.
func InvokeThriftgo(SDKPlugins []plugin.SDKPlugin, args ...string) (err error) {

var a targs.Arguments

err = a.Parse(args)
Expand All @@ -57,7 +54,7 @@ func InvokeThriftgo(SDKPlugins []plugin.SDKPlugin, args ...string) (err error) {
// todo check log
log := a.MakeLogFunc()

ast, err := parser.ParseFile(a.IDL, a.Includes, true)
ast, err := parser.ParseFile(a.IDL, a.Includes, a.Recursive)
if err != nil {
return err
}
Expand Down

0 comments on commit b559bfb

Please sign in to comment.