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

Method run

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

Source from the content-addressed store, hash-verified

51}
52
53func (s *serv) run(ctx context.Context) error {
54 select {
55 case <-time.After(s.conf.runSleep):
56 case <-ctx.Done():
57 if s.conf.runReturnContextErr {
58 return ctx.Err()
59 }
60 }
61 return s.conf.runRetVal
62}
63
64func (s *serv) shutDown(_ error) error {
65 return s.conf.stopRetVal

Callers

nothing calls this directly

Calls 3

AfterMethod · 0.65
DoneMethod · 0.65
ErrMethod · 0.45

Tested by

no test coverage detected