Skip to content

Commit

Permalink
workaround to compile
Browse files Browse the repository at this point in the history
  • Loading branch information
eljeko authored Dec 6, 2023
1 parent 1599f8b commit c443f10
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions pkg/cmd/templateRun.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ import (
"github.com/ugol/jr/pkg/constants"
"github.com/ugol/jr/pkg/emitter"
"github.com/ugol/jr/pkg/functions"
"log"
"time"
)

Expand All @@ -53,7 +52,7 @@ jr template run --template "{{name}}"

num, _ := cmd.Flags().GetInt("num")
frequency, _ := cmd.Flags().GetDuration("frequency")
duration, _ := cmd.Flags().GetDuration("duration")
//duration, _ := cmd.Flags().GetDuration("duration")
throughputString, _ := cmd.Flags().GetString("throughput")

Check failure on line 56 in pkg/cmd/templateRun.go

View workflow job for this annotation

GitHub Actions / build

throughputString declared and not used

Check failure on line 56 in pkg/cmd/templateRun.go

View workflow job for this annotation

GitHub Actions / build

throughputString declared and not used
seed, _ := cmd.Flags().GetInt64("seed")
topic, _ := cmd.Flags().GetString("topic")
Expand All @@ -75,7 +74,7 @@ jr template run --template "{{name}}"
vTemplate = args[0]
eTemplate = ""
}

/*
throughput, err := parseThroughput(throughputString)
if err != nil {
log.Panicf("Throughput format error:%v", err)
Expand All @@ -84,7 +83,7 @@ jr template run --template "{{name}}"
if throughput > 0 {
// @TODO
}

*/
cmd.Flags().VisitAll(func(f *pflag.Flag) {
if f.Changed {
switch f.Name {
Expand Down

0 comments on commit c443f10

Please sign in to comment.