Skip to content

Commit

Permalink
nit
Browse files Browse the repository at this point in the history
Signed-off-by: Justin Jung <[email protected]>
  • Loading branch information
justinjung04 committed Sep 8, 2023
1 parent 94fb56a commit 46978a9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/storegateway/bucket_stores.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 46978a9

Please sign in to comment.