(ctx context.Context, ids []int64)
| 215 | } |
| 216 | |
| 217 | func (e *Example) GetBatch(ctx context.Context, ids []int64) ([]*Item, error) { |
| 218 | // enable shadow read from new storage |
| 219 | // ... |
| 220 | // enable priority read from new storage |
| 221 | // ... |
| 222 | items, err := e.storeV1.GetBatch(ctx, ids) |
| 223 | if err != nil { |
| 224 | return nil, fmt.Errorf("failed to get items: %w", err) |
| 225 | } |
| 226 | return items, nil |
| 227 | } |