Skip to content

Commit b86d2c2

Browse files
authored
Merge pull request #281 from cschleiden/fix-scale-sample
Fix flags for scale sample
2 parents dbb31b3 + be5cafd commit b86d2c2

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

samples/scale/starter/main.go

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,14 @@ import (
1515
)
1616

1717
var tostart = flag.Int("count", 100, "Number of workflow instances to start")
18-
var backendType = flag.String("backend", "redis", "backend to use: sqlite, mysql, redis")
1918
var count int32
2019

2120
func main() {
22-
flag.Parse()
23-
2421
ctx := context.Background()
22+
b := samples.GetBackend("scale")
2523

2624
count = int32(*tostart)
2725

28-
b := samples.GetBackend("scale")
29-
3026
// Start workflow via client
3127
c := client.New(b)
3228

samples/scale/worker/main.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ import (
1313
"github.com/cschleiden/go-workflows/worker"
1414
)
1515

16-
var backendType = flag.String("backend", "redis", "backend to use: sqlite, mysql, redis")
17-
1816
func main() {
1917
flag.Parse()
2018

0 commit comments

Comments
 (0)