From 5b4cfdc6e60cbb59eb3d776a9d1da301e6c7ac53 Mon Sep 17 00:00:00 2001 From: Justin Jung Date: Fri, 8 Sep 2023 16:26:07 -0700 Subject: [PATCH] nit Signed-off-by: Justin Jung --- pkg/storegateway/bucket_stores.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 }