File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -57,9 +57,6 @@ func (pg *PrutalGen) initPackageInfo(f *prutalgen.Proto) *generator.PackageInfo
5757}
5858
5959func (pg * PrutalGen ) generateClientServerFiles (f * prutalgen.Proto , p * generator.PackageInfo ) error {
60- if pg .c .Use != "" {
61- return nil
62- }
6360 log .Debugf ("[INFO] Generate %q at %q\n " , f .ProtoFile , f .GoImport )
6461 for _ , s := range p .Services {
6562 p .ServiceInfo = s
@@ -102,6 +99,10 @@ func (pg *PrutalGen) Process() error {
10299 p := pg .initPackageInfo (f )
103100 pg .pp = append (pg .pp , p )
104101
102+ if pg .c .Use != "" {
103+ continue
104+ }
105+
105106 // generate the structs and interfaces
106107 genStructsAndKitexInterfaces (f , c , srcPath )
107108 if err := pg .generateClientServerFiles (f , p ); err != nil {
You can’t perform that action at this time.
0 commit comments