Skip to content

Commit f96a4cd

Browse files
committed
Minor adjustments
Signed-off-by: gotjosh <[email protected]>
1 parent d397fe4 commit f96a4cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/distributor/distributor.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ func (d *Distributor) Push(ctx context.Context, req *client.WriteRequest) (*clie
386386
seriesKeys := make([]uint32, 0, len(req.Timeseries))
387387
validatedSamples := 0
388388

389-
if len(req.Timeseries) > 0 && d.limits.AcceptHASamples(userID) {
389+
if d.limits.AcceptHASamples(userID) && len(req.Timeseries) > 0 {
390390
cluster, replica := findHALabels(d.limits.HAReplicaLabel(userID), d.limits.HAClusterLabel(userID), req.Timeseries[0].Labels)
391391
removeReplica, err = d.checkSample(ctx, userID, cluster, replica)
392392
if err != nil {

0 commit comments

Comments
 (0)