Commit 333a8539 by utkarshcmu

Fixed for loop and append

parent 10d581dd
......@@ -57,11 +57,10 @@ func (e *OpenTsdbExecutor) Execute(ctx context.Context, queries tsdb.QuerySlice,
tsdbQuery.Start = queryContext.TimeRange.GetFromAsMsEpoch()
tsdbQuery.End = queryContext.TimeRange.GetToAsMsEpoch()
tsdbQuery.Queries = make([]map[string]interface{}, len(queries))
for i := 0; i < len(queries); i++ {
metric := e.buildMetric(queries[i])
tsdbQuery.Queries[i] = metric
for _ , query := range queries {
metric := e.buildMetric(query)
tsdbQuery.Queries = append(tsdbQuery.Queries, metric)
}
if setting.Env == setting.DEV {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment