Skip to content

Commit

Permalink
Revert spurious change
Browse files Browse the repository at this point in the history
Signed-off-by: Marco Pracucci <[email protected]>
  • Loading branch information
pracucci committed Jun 17, 2024
1 parent 74ce3e5 commit 5ef55f1
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion pkg/frontend/querymiddleware/limits.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,6 @@ func (l limitsMiddleware) Do(ctx context.Context, r MetricsQueryRequest) (Respon
blocksRetentionPeriod := validation.SmallestPositiveNonZeroDurationPerTenant(tenantIDs, l.CompactorBlocksRetentionPeriod)
maxQueryLookback := validation.SmallestPositiveNonZeroDurationPerTenant(tenantIDs, l.MaxQueryLookback)
maxLookback := smallestPositiveNonZeroDuration(blocksRetentionPeriod, maxQueryLookback)

if maxLookback > 0 {
minStartTime := util.TimeToMillis(time.Now().Add(-maxLookback))

Expand Down

0 comments on commit 5ef55f1

Please sign in to comment.