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

Method Delete

pkg/util/request_tracker/request_tracker.go:166–169  ·  view source on GitHub ↗
(insertIndex int)

Source from the content-addressed store, hash-verified

164}
165
166func (tracker *RequestTracker) Delete(insertIndex int) {
167 copy(tracker.mmappedFile[insertIndex:], strings.Repeat("\x00", maxEntrySize))
168 tracker.getNextIndex <- insertIndex
169}
170
171func (tracker *RequestTracker) Insert(ctx context.Context, entry []byte) (int, error) {
172 if len(entry) > maxEntrySize {

Callers 2

TestAPITrackerFunction · 0.95

Calls

no outgoing calls

Tested by 2

TestAPITrackerFunction · 0.76