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() {
7070 } else {
7171 log .Printf ("RTS export disabled.\n " )
7272 }
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)\" " )
7576 }
7677 log .Printf ("Debug level: %d.\n " , * debug )
7778 log .Printf ("Using random seed: %d.\n " , * randomSeed )
@@ -104,7 +105,7 @@ func main() {
104105 } else {
105106 log .Printf ("Running in loop until you hit Ctrl+C\n " )
106107 }
107- totalQueries := len ( benchmarkQueries ) + len ( benchmarkQueriesRO )
108+
108109 queries := make ([]string , totalQueries )
109110 queryIsReadOnly := make ([]bool , totalQueries )
110111 cmdRates := make ([]float64 , totalQueries )
You can’t perform that action at this time.
0 commit comments