From c443f10e4f8c3733ed4986ef2fa8e055cd9c57e2 Mon Sep 17 00:00:00 2001 From: Stefano Linguerri Date: Wed, 6 Dec 2023 11:48:50 +0100 Subject: [PATCH] workaround to compile --- pkg/cmd/templateRun.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/pkg/cmd/templateRun.go b/pkg/cmd/templateRun.go index cec4efd4..7adcf313 100644 --- a/pkg/cmd/templateRun.go +++ b/pkg/cmd/templateRun.go @@ -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" ) @@ -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") seed, _ := cmd.Flags().GetInt64("seed") topic, _ := cmd.Flags().GetString("topic") @@ -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) @@ -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 {