MCPcopy
hub / github.com/grafana/dskit / invalidServiceStateWithFailureError

Function invalidServiceStateWithFailureError

services/basic_service.go:79–81  ·  view source on GitHub ↗
(state, expected State, failure error)

Source from the content-addressed store, hash-verified

77}
78
79func invalidServiceStateWithFailureError(state, expected State, failure error) error {
80 return fmt.Errorf("invalid service state: %v, expected: %v, failure: %w", state, expected, failure)
81}
82
83// NewBasicService returns service built from three functions (using BasicService).
84func NewBasicService(start StartingFn, run RunningFn, stop StoppingFn) *BasicService {

Callers 2

TestAllFunctionalityFunction · 0.85
awaitStateMethod · 0.85

Calls 1

ErrorfMethod · 0.80

Tested by 1

TestAllFunctionalityFunction · 0.68