Skip to content

Commit

Permalink
fix: barry 2024-09-21 20:50:54
Browse files Browse the repository at this point in the history
  • Loading branch information
kooksee committed Sep 21, 2024
1 parent 121e065 commit 2030127
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions cmds/protoc-gen-lava/internal/gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ func GenerateFile(gen *protogen.Plugin, file *protogen.File) (g *protogen.Genera
genFile.Var().
Id(keyName).
Op("=").
Func().Params().Qual(lavapbv1Pkg, "RpcMeta").
Func().Params().Op("*").Qual(lavapbv1Pkg, "RpcMeta").
BlockFunc(
func(group *jen.Group) {
group.Var().Id("p").Qual(lavapbv1Pkg, "RpcMeta")
Expand All @@ -93,10 +93,9 @@ func GenerateFile(gen *protogen.Plugin, file *protogen.File) (g *protogen.Genera
jen.Id("&p"),
),
)
group.Return(jen.Id("p"))
group.Return(jen.Id("&p"))
},
).Call()

}

g.P(genFile.GoString())
Expand Down

0 comments on commit 2030127

Please sign in to comment.