(ctx context.Context, key dynamodbKey, isPrefix bool)
| 310 | } |
| 311 | |
| 312 | func (d *dynamodbKVWithTimeout) Query(ctx context.Context, key dynamodbKey, isPrefix bool) (map[string]dynamodbItem, float64, error) { |
| 313 | ctx, cancel := context.WithTimeout(ctx, d.timeout) |
| 314 | defer cancel() |
| 315 | return d.ddbClient.Query(ctx, key, isPrefix) |
| 316 | } |
| 317 | |
| 318 | func (d *dynamodbKVWithTimeout) Delete(ctx context.Context, key dynamodbKey) error { |
| 319 | ctx, cancel := context.WithTimeout(ctx, d.timeout) |