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

Method startUp

services/basic_service_test.go:42–51  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

40}
41
42func (s *serv) startUp(ctx context.Context) error {
43 select {
44 case <-time.After(s.conf.startSleep):
45 case <-ctx.Done():
46 if s.conf.startReturnContextErr {
47 return ctx.Err()
48 }
49 }
50 return s.conf.startRetVal
51}
52
53func (s *serv) run(ctx context.Context) error {
54 select {

Callers

nothing calls this directly

Calls 3

AfterMethod · 0.65
DoneMethod · 0.65
ErrMethod · 0.45

Tested by

no test coverage detected