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

Method run

pkg/util/modules/module_service.go:73–78  ·  view source on GitHub ↗
(serviceContext context.Context)

Source from the content-addressed store, hash-verified

71}
72
73func (w *moduleService) run(serviceContext context.Context) error {
74 // wait until service stops, or context is canceled, whatever happens first.
75 // We don't care about exact error here
76 _ = w.service.AwaitTerminated(serviceContext)
77 return w.service.FailureCase()
78}
79
80func (w *moduleService) stop(_ error) error {
81 var err error

Callers

nothing calls this directly

Calls 2

AwaitTerminatedMethod · 0.65
FailureCaseMethod · 0.65

Tested by

no test coverage detected