(errs ...error)
| 912 | } |
| 913 | |
| 914 | func joinErrors(errs ...error) error { |
| 915 | filtered := make([]error, 0, len(errs)) |
| 916 | for _, err := range errs { |
| 917 | if err != nil { |
| 918 | filtered = append(filtered, err) |
| 919 | } |
| 920 | } |
| 921 | return errors.Join(filtered...) |
| 922 | } |
| 923 | |
| 924 | func sleepContext(ctx context.Context, wait time.Duration) error { |
| 925 | if wait <= 0 { |