errors returns the per-topic errors in deterministic (sorted by topic) order.
()
| 45 | |
| 46 | // errors returns the per-topic errors in deterministic (sorted by topic) order. |
| 47 | func (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 | |
| 56 | func errorForTopics(topics []string, err error) error { |
| 57 | if err == nil { |