(ctx context.Context)
| 140 | } |
| 141 | |
| 142 | func getIndex(ctx context.Context) (idx int) { |
| 143 | if v := ctx.Value("index"); v != nil { |
| 144 | if i, ok := v.(int); ok { |
| 145 | idx = i |
| 146 | } else { |
| 147 | idx = -1 |
| 148 | } |
| 149 | } |
| 150 | return |
| 151 | } |
| 152 | func replyError(ctx context.Context, errc chan error, err error) { |
| 153 | select { |
| 154 | case <-ctx.Done(): |
no test coverage detected