Skip to content

Commit

Permalink
fix codec setting cache disabled flag
Browse files Browse the repository at this point in the history
Signed-off-by: Kaviraj <kavirajkanagaraj@gmail.com>
  • Loading branch information
kavirajk committed May 13, 2024
1 parent 1328ee5 commit 12a591a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion pkg/querier/queryrange/codec.go
Original file line number Diff line number Diff line change
Expand Up @@ -339,14 +339,20 @@ func (Codec) DecodeRequest(_ context.Context, r *http.Request, _ []string) (quer
if err != nil {
return nil, httpgrpc.Errorf(http.StatusBadRequest, err.Error())
}

req.CachingOptions = queryrangebase.CachingOptions{
Disabled: disableCacheReq,
}
return req, nil
case InstantQueryOp:
req, err := parseInstantQuery(r)
if err != nil {
return nil, httpgrpc.Errorf(http.StatusBadRequest, err.Error())
}

req.CachingOptions = queryrangebase.CachingOptions{
Disabled: disableCacheReq,
}

return req, nil
case SeriesOp:
req, err := loghttp.ParseAndValidateSeriesQuery(r)
Expand Down

0 comments on commit 12a591a

Please sign in to comment.