(ctx context.Context, ids []int64)
| 55 | } |
| 56 | |
| 57 | func (e *Example) GetBatch(ctx context.Context, ids []int64) ([]*Item, error) { |
| 58 | // enable shadow read from new storage |
| 59 | // ... |
| 60 | |
| 61 | // enable priority read from new storage |
| 62 | // ... |
| 63 | |
| 64 | items, err := e.storeV1.GetBatch(ctx, ids) |
| 65 | if err != nil { |
| 66 | return nil, fmt.Errorf("failed to get items: %w", err) |
| 67 | } |
| 68 | |
| 69 | return items, nil |
| 70 | } |