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

Method starting

pkg/alertmanager/state_persister.go:87–91  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

85}
86
87func (s *statePersister) starting(ctx context.Context) error {
88 // Waits until the state replicator is settled, so that state is not
89 // persisted before obtaining some initial state.
90 return s.state.WaitReady(ctx)
91}
92
93func (s *statePersister) iteration(ctx context.Context) error {
94 if err := s.persist(ctx); err != nil {

Callers

nothing calls this directly

Calls 1

WaitReadyMethod · 0.65

Tested by

no test coverage detected