Skip to content

Commit 7f9c6b3

Browse files
authored
Small fixes to gen go and init (#420)
1 parent 6b55f2d commit 7f9c6b3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cmd/lekko/init.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ on:
309309
permissions:
310310
contents: read
311311
jobs:
312-
build:
312+
push:
313313
runs-on: ubuntu-latest
314314
steps:
315315
- uses: actions/checkout@v4

pkg/gen/golang.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,7 @@ func (g *goGenerator) getProtoTemplateBody() *configCodeTemplate {
490490
func (c *LekkoClient) {{$.FuncName}}({{$.ArgumentString}}) *{{$.RetType}} {
491491
{{ $.CtxStuff }}
492492
result := &{{$.RetType}}{}
493-
err := c.{{$.GetFunction}}(ctx, "{{$.Namespace}}", "{{$.Key}}", result)
493+
err := c.{{$.GetFunction}}(args, "{{$.Namespace}}", "{{$.Key}}", result)
494494
if err == nil {
495495
return result
496496
}

0 commit comments

Comments
 (0)