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

Method done

pkg/ring/replication_set_tracker.go:54–62  ·  view source on GitHub ↗
(instance *InstanceDesc, result any, err error)

Source from the content-addressed store, hash-verified

52}
53
54func (t *defaultResultTracker) done(instance *InstanceDesc, result any, err error) {
55 if err == nil {
56 t.numSucceeded++
57 t.results = append(t.results, result)
58 } else {
59 t.errors = append(t.errors, fmt.Errorf("(%s) %w", instance.GetAddr(), err))
60 t.numErrors++
61 }
62}
63
64func (t *defaultResultTracker) finished() bool {
65 return t.numSucceeded+t.numErrors == t.numInstances

Callers

nothing calls this directly

Calls 1

GetAddrMethod · 0.80

Tested by

no test coverage detected