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

Method running

kv/memberlist/kv_init_service.go:75–83  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

73}
74
75func (kvs *KVInitService) running(ctx context.Context) error {
76 select {
77 case <-ctx.Done():
78 return nil
79 case err := <-kvs.watcher.Chan():
80 // Only happens if KV service was actually initialized in GetMemberlistKV and it fails.
81 return err
82 }
83}
84
85func (kvs *KVInitService) stopping(_ error) error {
86 kv := kvs.getKV()

Callers

nothing calls this directly

Calls 2

ChanMethod · 0.80
DoneMethod · 0.65

Tested by

no test coverage detected