Skip to content

Commit 70dbc4f

Browse files
committed
tech(elastic): add context to elastic executor
1 parent 7a8eee2 commit 70dbc4f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/tsdb/elasticsearch/elasticsearch.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package elasticsearch
22

33
import (
4+
"context"
45
"encoding/json"
56
"fmt"
67
"strconv"
@@ -28,7 +29,7 @@ func init() {
2829
tsdb.RegisterExecutor("elasticsearch", NewEsExecutor)
2930
}
3031

31-
func (e *EsExecutor) Execute(queries tsdb.QuerySlice, context *tsdb.QueryContext) *tsdb.BatchResult {
32+
func (e *EsExecutor) Execute(ctx context.Context, queries tsdb.QuerySlice, context *tsdb.QueryContext) *tsdb.BatchResult {
3233
batchResult := &tsdb.BatchResult{}
3334

3435
//convert dashboard query datastructure to helper objects

0 commit comments

Comments
 (0)