Skip to content

Commit 9621736

Browse files
committed
code cleaning
1 parent 3cef25e commit 9621736

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cmd/go-sysbench/main.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,14 @@ func main() {
4545
command := args[1]
4646

4747
bench, err := benchmarkFactory(testname, &opts.BenchmarkOpts)
48-
r := sysbench.NewRunner(&opts.RunnerOpts, bench)
4948

5049
if err != nil {
5150
fmt.Println(err)
5251
os.Exit(1)
5352
}
5453

54+
r := sysbench.NewRunner(&opts.RunnerOpts, bench)
55+
5556
if command == "run" {
5657
err = r.Run()
5758
} else if command == "prepare" {

cmd/go-sysbench/oltpbench.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -723,4 +723,3 @@ func (o *OLTPBench) createTable() error {
723723

724724
return nil
725725
}
726-

0 commit comments

Comments
 (0)