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

Method starting

servicediscovery/ring.go:46–50  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

44}
45
46func (r *ringServiceDiscovery) starting(ctx context.Context) error {
47 r.subservicesWatcher.WatchService(r.ringClient)
48
49 return errors.Wrap(services.StartAndAwaitRunning(ctx, r.ringClient), "failed to start ring client")
50}
51
52func (r *ringServiceDiscovery) stopping(_ error) error {
53 return errors.Wrap(services.StopAndAwaitTerminated(context.Background(), r.ringClient), "failed to stop ring client")

Callers

nothing calls this directly

Calls 3

StartAndAwaitRunningFunction · 0.92
WatchServiceMethod · 0.80
WrapMethod · 0.65

Tested by

no test coverage detected