From a463d6b6dbf96fe046af1b61718e29310df73d53 Mon Sep 17 00:00:00 2001 From: Alvin Lin Date: Mon, 19 Oct 2020 00:37:18 -0700 Subject: [PATCH] Remove comments that doesn't seem right Signed-off-by: Alvin Lin --- pkg/distributor/ha_tracker.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/pkg/distributor/ha_tracker.go b/pkg/distributor/ha_tracker.go index 4aebabceadf..d6cbe3b252d 100644 --- a/pkg/distributor/ha_tracker.go +++ b/pkg/distributor/ha_tracker.go @@ -273,9 +273,6 @@ func replicasNotMatchError(replica, elected string) error { return httpgrpc.Errorf(http.StatusAccepted, "replicas did not mach, rejecting sample: replica=%s, elected=%s", replica, elected) } -// Modifies the labels parameter in place, removing labels that match -// the replica or cluster label and returning their values. Returns an error -// if we find one but not both of the labels. func findHALabels(replicaLabel, clusterLabel string, labels []client.LabelAdapter) (string, string) { var cluster, replica string var pair client.LabelAdapter