(ctx context.Context, w backend.Writer)
| 132 | } |
| 133 | |
| 134 | func (c *LocalBlock) Write(ctx context.Context, w backend.Writer) error { |
| 135 | if err := encoding.CopyBlock(ctx, c.BlockMeta(), c.reader, w); err != nil { |
| 136 | return fmt.Errorf("error copying block from local to remote backend: %w", err) |
| 137 | } |
| 138 | |
| 139 | return c.SetFlushed(ctx) |
| 140 | } |
| 141 | |
| 142 | func (c *LocalBlock) SetDiskCache(ctx context.Context, cacheKey string, data []byte) error { |
| 143 | return c.writer.Write(ctx, cacheKey, (uuid.UUID)(c.BlockMeta().BlockID), c.BlockMeta().TenantID, data, nil) |
nothing calls this directly
no test coverage detected