File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -70,8 +70,9 @@ func main() {
70
70
} else {
71
71
log .Printf ("RTS export disabled.\n " )
72
72
}
73
- if len (benchmarkQueries ) < 1 {
74
- log .Fatalf ("You need to specify at least a query with the -query parameter. For example: -query=\" CREATE (n)\" " )
73
+ totalQueries := len (benchmarkQueries ) + len (benchmarkQueriesRO )
74
+ if totalQueries < 1 {
75
+ log .Fatalf ("You need to specify at least a query with the -query parameter or -query-ro. For example: -query=\" CREATE (n)\" " )
75
76
}
76
77
log .Printf ("Debug level: %d.\n " , * debug )
77
78
log .Printf ("Using random seed: %d.\n " , * randomSeed )
@@ -104,7 +105,7 @@ func main() {
104
105
} else {
105
106
log .Printf ("Running in loop until you hit Ctrl+C\n " )
106
107
}
107
- totalQueries := len ( benchmarkQueries ) + len ( benchmarkQueriesRO )
108
+
108
109
queries := make ([]string , totalQueries )
109
110
queryIsReadOnly := make ([]bool , totalQueries )
110
111
cmdRates := make ([]float64 , totalQueries )
You can’t perform that action at this time.
0 commit comments