Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
iwysiu committed Sep 5, 2024
1 parent 1cc40d9 commit ad96a22
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion pkg/opensearch/lucene_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,6 @@ func (h *luceneHandler) executeQueries(ctx context.Context) (*backend.QueryDataR

res, err := h.client.ExecuteMultisearch(ctx, req)
if err != nil {
backend.Logger.Warn("executeMultisearch", "err", err)
// We are returning the error containing the source that was added through errorsource.Middleware
return errorsource.AddErrorToResponse(h.queries[0].RefID, response, err), nil
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/opensearch/opensearch.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ func (ds *OpenSearchDatasource) QueryData(ctx context.Context, req *backend.Quer
// handleServiceMapPrefetch inspects the given request, and, if it wants a serviceMap, creates and
// calls the Prefetch query to get the services and operations lists that are required for
// the associated Stats query. It then adds these parameters to the originating query so
// the Stats query can be created later. Returns true if the serviceMap was fetched
// the Stats query can be created later. Returns a response with an error if the request fails.
func handleServiceMapPrefetch(ctx context.Context, osClient client.Client, req *backend.QueryDataRequest) *backend.QueryDataResponse {
for i, query := range req.Queries {
model, err := simplejson.NewJson(query.JSON)
Expand Down

0 comments on commit ad96a22

Please sign in to comment.