MCPcopy Create free account
hub / github.com/cortexproject/cortex / AddChunks

Method AddChunks

pkg/util/limiter/query_limiter.go:121–130  ·  view source on GitHub ↗
(count int)

Source from the content-addressed store, hash-verified

119}
120
121func (ql *QueryLimiter) AddChunks(count int) error {
122 if ql.maxChunksPerQuery == 0 {
123 return nil
124 }
125
126 if ql.chunkCount.Add(int64(count)) > int64(ql.maxChunksPerQuery) {
127 return fmt.Errorf(ErrMaxChunksPerQueryLimit, ql.maxChunksPerQuery)
128 }
129 return nil
130}

Callers 3

queryIngesterStreamMethod · 0.80
NewParquetQueryableFunction · 0.80
fetchSeriesFromStoresMethod · 0.80

Calls 1

AddMethod · 0.45

Tested by

no test coverage detected