MCPcopy Index your code
hub / github.com/cortexproject/cortex / run

Method run

pkg/ruler/notifier.go:60–72  ·  view source on GitHub ↗

run starts the notifier. This function doesn't block and returns immediately.

()

Source from the content-addressed store, hash-verified

58
59// run starts the notifier. This function doesn't block and returns immediately.
60func (rn *rulerNotifier) run() {
61 rn.wg.Add(2)
62 go func() {
63 if err := rn.sdManager.Run(); err != nil {
64 level.Error(rn.logger).Log("msg", "error starting notifier discovery manager", "err", err)
65 }
66 rn.wg.Done()
67 }()
68 go func() {
69 rn.notifier.Run(rn.sdManager.SyncCh())
70 rn.wg.Done()
71 }()
72}
73
74func (rn *rulerNotifier) applyConfig(cfg *config.Config) error {
75 if err := rn.notifier.ApplyConfig(cfg); err != nil {

Callers

nothing calls this directly

Calls 5

DoneMethod · 0.80
RunMethod · 0.65
AddMethod · 0.45
LogMethod · 0.45
ErrorMethod · 0.45

Tested by

no test coverage detected