MCPcopy Create free account
hub / github.com/IBM/sarama / errors

Method errors

metadata.go:47–54  ·  view source on GitHub ↗

errors returns the per-topic errors in deterministic (sorted by topic) order.

()

Source from the content-addressed store, hash-verified

45
46// errors returns the per-topic errors in deterministic (sorted by topic) order.
47func (e refreshError) errors() []error {
48 topics := slices.Sorted(maps.Keys(e))
49 errs := make([]error, len(topics))
50 for i, topic := range topics {
51 errs[i] = e[topic]
52 }
53 return errs
54}
55
56func errorForTopics(topics []string, err error) error {
57 if err == nil {

Callers 3

ErrorMethod · 0.95
UnwrapMethod · 0.95
forTopicsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected