app/vmselect: use GetDeadlineForLabelsAPI for LabelAPI requests (#5992)

(cherry picked from commit 70eaa06f08)
This commit is contained in:
kbweave 2024-03-25 08:07:34 -06:00 committed by hagen1778
parent cd222d6502
commit 1fc3b39b9c
No known key found for this signature in database
GPG key ID: 3BF75F3741CA9640

View file

@ -1241,7 +1241,7 @@ func getCommonParamsForLabelsAPI(r *http.Request, startTime time.Time, requireNo
if cp.start == 0 {
cp.start = cp.end - defaultStep
}
cp.deadline = searchutils.GetDeadlineForExport(r, startTime)
cp.deadline = searchutils.GetDeadlineForLabelsAPI(r, startTime)
return cp, nil
}