MCPcopy
hub / github.com/grafana/dskit / ResetIndex

Method ResetIndex

kv/consul/mock.go:239–247  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

237}
238
239func (m *mockKV) ResetIndex() {
240 m.mtx.Lock()
241 defer m.mtx.Unlock()
242
243 m.current = 0
244 m.cond.Broadcast()
245
246 level.Debug(m.logger).Log("msg", "Reset")
247}
248
249func (m *mockKV) ResetIndexForKey(key string) {
250 m.mtx.Lock()

Callers 1

TestResetFunction · 0.80

Calls 1

LogMethod · 0.45

Tested by 1

TestResetFunction · 0.64