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

Method starting

pkg/util/runtimeconfig/manager.go:98–110  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

96}
97
98func (om *Manager) starting(ctx context.Context) error {
99 if om.cfg.LoadPath == "" {
100 return nil
101 }
102
103 var err error
104 om.bucketClient, err = om.bucketClientFactory(ctx)
105 if err != nil {
106 return err
107 }
108
109 return errors.Wrap(om.loadConfig(ctx), "failed to load runtime config")
110}
111
112// CreateListenerChannel creates new channel that can be used to receive new config values.
113// If there is no receiver waiting for value when config manager tries to send the update,

Callers

nothing calls this directly

Calls 2

loadConfigMethod · 0.95
WrapMethod · 0.65

Tested by

no test coverage detected