()
| 60 | } |
| 61 | |
| 62 | func (b *requestBatch) contextError() error { |
| 63 | multiErr := multierror.New() |
| 64 | |
| 65 | for _, r := range b.pipelineRequests { |
| 66 | if err := r.OriginalContext().Err(); err != nil { |
| 67 | multiErr.Add(err) |
| 68 | } |
| 69 | } |
| 70 | |
| 71 | return multiErr.Err() |
| 72 | } |
| 73 | |
| 74 | // doneChan() returns a channel that can be used to watch for context cancellation |
| 75 | // across the entire batch. it only closes the returned channel if all contexts |