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

This commit is contained in:
kbweave 2024-03-25 08:07:34 -06:00 committed by GitHub
parent b08cbd0400
commit 70eaa06f08
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1138,7 +1138,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
}