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

Method getKV

kv/memberlist/kv_init_service.go:67–73  ·  view source on GitHub ↗

Returns KV if it was initialized, or nil.

()

Source from the content-addressed store, hash-verified

65
66// Returns KV if it was initialized, or nil.
67func (kvs *KVInitService) getKV() *KV {
68 kv := kvs.kv.Load()
69 if kv == nil {
70 return nil
71 }
72 return kv.(*KV)
73}
74
75func (kvs *KVInitService) running(ctx context.Context) error {
76 select {

Callers 3

GetMemberlistKVMethod · 0.95
stoppingMethod · 0.95
ServeHTTPMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected