Skip to content

Commit 912c00b

Browse files
code review
1 parent 8dd17b1 commit 912c00b

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

cmd/lekko/gen.go

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -130,15 +130,15 @@ func (c *SafeLekkoClient) GetString(ctx context.Context, namespace string, key s
130130
return res
131131
}
132132
133-
func (c *SafeLekkoClient) GetFloat(ctx context.Context, key string, namespace string) float64 {
133+
func (c *SafeLekkoClient) GetFloat(ctx context.Context, namespace string, key string) float64 {
134134
res, err := c.Client.GetFloat(ctx, namespace, key)
135135
if err != nil {
136136
panic(err)
137137
}
138138
return res
139139
}
140140
141-
func (c *SafeLekkoClient) GetInt(ctx context.Context, key string, namespace string) int64 {
141+
func (c *SafeLekkoClient) GetInt(ctx context.Context, namespace string, key string) int64 {
142142
res, err := c.Client.GetInt(ctx, namespace, key)
143143
if err != nil {
144144
panic(err)
@@ -168,9 +168,7 @@ var StaticConfig = map[string]map[string][]byte{
168168
pCmd.Dir = "."
169169
fmt.Println("executing in wd: " + wd + " command: " + pCmd.String())
170170
if out, err := pCmd.CombinedOutput(); err != nil {
171-
fmt.Println("this is the error probably")
172-
fmt.Println(string(out))
173-
fmt.Println(err)
171+
fmt.Printf("Error when generating code with buf: %s\n %e\n", out, err)
174172
return err
175173
}
176174
if err := os.MkdirAll("./internal/lekko/"+ns, 0770); err != nil {

0 commit comments

Comments
 (0)