Method
done
(instance *InstanceDesc, result any, err error)
Source from the content-addressed store, hash-verified
| 52 | } |
| 53 | |
| 54 | func (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 | |
| 64 | func (t *defaultResultTracker) finished() bool { |
| 65 | return t.numSucceeded+t.numErrors == t.numInstances |
Callers
nothing calls this directly
Tested by
no test coverage detected