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

Method watch

integration/kv_test.go:243–249  ·  view source on GitHub ↗
(ctx context.Context, client kv.Client)

Source from the content-addressed store, hash-verified

241}
242
243func (w *watcher) watch(ctx context.Context, client kv.Client) {
244 w.values = map[string][]interface{}{}
245 client.WatchPrefix(ctx, "", func(key string, value interface{}) bool {
246 w.values[key] = append(w.values[key], value)
247 return true
248 })
249}

Callers 1

TestKVWatchAndDeleteFunction · 0.95

Calls 1

WatchPrefixMethod · 0.65

Tested by

no test coverage detected