@@ -1228,8 +1228,8 @@ func (d *Distributor) LabelValuesForLabelNameCommon(ctx context.Context, from, t
1228
1228
}
1229
1229
1230
1230
// LabelValuesForLabelName returns all the label values that are associated with a given label name.
1231
- func (d * Distributor ) LabelValuesForLabelName (ctx context.Context , from , to model.Time , label model.LabelName , hint * storage.LabelHints , partialDataEnabled bool , matchers ... * labels.Matcher ) ([]string , error ) {
1232
- return d .LabelValuesForLabelNameCommon (ctx , from , to , label , hint , func (ctx context.Context , rs ring.ReplicationSet , req * ingester_client.LabelValuesRequest ) ([]interface {}, error ) {
1231
+ func (d * Distributor ) LabelValuesForLabelName (ctx context.Context , from , to model.Time , labelName model.LabelName , hint * storage.LabelHints , partialDataEnabled bool , matchers ... * labels.Matcher ) ([]string , error ) {
1232
+ return d .LabelValuesForLabelNameCommon (ctx , from , to , labelName , hint , func (ctx context.Context , rs ring.ReplicationSet , req * ingester_client.LabelValuesRequest ) ([]interface {}, error ) {
1233
1233
return d .ForReplicationSet (ctx , rs , d .cfg .ZoneResultsQuorumMetadata , partialDataEnabled , func (ctx context.Context , client ingester_client.IngesterClient ) (interface {}, error ) {
1234
1234
resp , err := client .LabelValues (ctx , req )
1235
1235
if err != nil {
@@ -1241,8 +1241,8 @@ func (d *Distributor) LabelValuesForLabelName(ctx context.Context, from, to mode
1241
1241
}
1242
1242
1243
1243
// LabelValuesForLabelNameStream returns all the label values that are associated with a given label name.
1244
- func (d * Distributor ) LabelValuesForLabelNameStream (ctx context.Context , from , to model.Time , label model.LabelName , hint * storage.LabelHints , partialDataEnabled bool , matchers ... * labels.Matcher ) ([]string , error ) {
1245
- return d .LabelValuesForLabelNameCommon (ctx , from , to , label , hint , func (ctx context.Context , rs ring.ReplicationSet , req * ingester_client.LabelValuesRequest ) ([]interface {}, error ) {
1244
+ func (d * Distributor ) LabelValuesForLabelNameStream (ctx context.Context , from , to model.Time , labelName model.LabelName , hint * storage.LabelHints , partialDataEnabled bool , matchers ... * labels.Matcher ) ([]string , error ) {
1245
+ return d .LabelValuesForLabelNameCommon (ctx , from , to , labelName , hint , func (ctx context.Context , rs ring.ReplicationSet , req * ingester_client.LabelValuesRequest ) ([]interface {}, error ) {
1246
1246
return d .ForReplicationSet (ctx , rs , d .cfg .ZoneResultsQuorumMetadata , partialDataEnabled , func (ctx context.Context , client ingester_client.IngesterClient ) (interface {}, error ) {
1247
1247
stream , err := client .LabelValuesStream (ctx , req )
1248
1248
if err != nil {
0 commit comments