diff --git a/pkg/storegateway/bucket_stores.go b/pkg/storegateway/bucket_stores.go index 9e044cd8b5..2b25cbfc0e 100644 --- a/pkg/storegateway/bucket_stores.go +++ b/pkg/storegateway/bucket_stores.go @@ -300,9 +300,9 @@ func (u *BucketStores) Series(req *storepb.SeriesRequest, srv storepb.Store_Seri spanLog, spanCtx := spanlogger.New(srv.Context(), "BucketStores.Series") defer spanLog.Span.Finish() - maxInflightRequest := u.cfg.BucketStore.MaxInflightRequests - if maxInflightRequest > 0 { - if u.inflightRequestCnt >= maxInflightRequest { + maxInflightRequests := u.cfg.BucketStore.MaxInflightRequests + if maxInflightRequests > 0 { + if u.inflightRequestCnt >= maxInflightRequests { return ErrTooManyInflightRequests }