From be5cafd6f53a6d6881c9a0c69027472265469aea Mon Sep 17 00:00:00 2001 From: Christopher Schleiden Date: Sun, 12 Nov 2023 08:50:15 -0800 Subject: [PATCH] Fix flags for scale sample --- samples/scale/starter/main.go | 6 +----- samples/scale/worker/main.go | 2 -- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/samples/scale/starter/main.go b/samples/scale/starter/main.go index f1a6715c..41595a2c 100644 --- a/samples/scale/starter/main.go +++ b/samples/scale/starter/main.go @@ -15,18 +15,14 @@ import ( ) var tostart = flag.Int("count", 100, "Number of workflow instances to start") -var backendType = flag.String("backend", "redis", "backend to use: sqlite, mysql, redis") var count int32 func main() { - flag.Parse() - ctx := context.Background() + b := samples.GetBackend("scale") count = int32(*tostart) - b := samples.GetBackend("scale") - // Start workflow via client c := client.New(b) diff --git a/samples/scale/worker/main.go b/samples/scale/worker/main.go index 6976902e..4c1a4b37 100644 --- a/samples/scale/worker/main.go +++ b/samples/scale/worker/main.go @@ -13,8 +13,6 @@ import ( "github.com/cschleiden/go-workflows/worker" ) -var backendType = flag.String("backend", "redis", "backend to use: sqlite, mysql, redis") - func main() { flag.Parse()