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

Method stopping

kv/memberlist/kv_init_service.go:85–92  ·  view source on GitHub ↗
(_ error)

Source from the content-addressed store, hash-verified

83}
84
85func (kvs *KVInitService) stopping(_ error) error {
86 kv := kvs.getKV()
87 if kv == nil {
88 return nil
89 }
90
91 return services.StopAndAwaitTerminated(context.Background(), kv)
92}
93
94func (kvs *KVInitService) ServeHTTP(w http.ResponseWriter, req *http.Request) {
95 NewHTTPStatusHandler(kvs, defaultPageTemplate).ServeHTTP(w, req)

Callers 1

TestStopFunction · 0.95

Calls 2

getKVMethod · 0.95
StopAndAwaitTerminatedFunction · 0.92

Tested by 1

TestStopFunction · 0.76