Skip to content

Commit

Permalink
fix: detected fields unwrapping
Browse files Browse the repository at this point in the history
  • Loading branch information
trevorwhitney committed Apr 1, 2024
1 parent 6439dd7 commit f0c88e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/querier/queryrange/marshal.go
Original file line number Diff line number Diff line change
Expand Up @@ -369,8 +369,8 @@ func (Codec) QueryRequestWrap(ctx context.Context, r queryrangebase.Request) (*Q
result.Request = &QueryRequest_Streams{Streams: req}
case *logproto.ShardsRequest:
result.Request = &QueryRequest_ShardsRequest{ShardsRequest: req}
case *DetectedLabelsRequest:
result.Request = &QueryRequest_DetectedLabels{DetectedLabels: &req.DetectedLabelsRequest}
case *DetectedFieldsRequest:
result.Request = &QueryRequest_DetectedFields{DetectedFields: &req.DetectedFieldsRequest}
default:
return nil, fmt.Errorf("unsupported request type while wrapping, got (%T)", r)
}
Expand Down

0 comments on commit f0c88e9

Please sign in to comment.