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

Method mustSwitchState

pkg/util/services/basic_service.go:144–148  ·  view source on GitHub ↗
(from, to State, stateFn func())

Source from the content-addressed store, hash-verified

142}
143
144func (b *BasicService) mustSwitchState(from, to State, stateFn func()) {
145 if ok, _ := b.switchState(from, to, stateFn); !ok {
146 panic("switchState failed")
147 }
148}
149
150// This is the "main" method, that does most of the work of service.
151// Service is in Starting state when this method runs.

Callers 1

mainMethod · 0.95

Calls 1

switchStateMethod · 0.95

Tested by

no test coverage detected