(ctx context.Context, w backend.Writer)
| 44 | func (b *WriteableBlock) BlockMeta() *backend.BlockMeta { return b.backendBlock.BlockMeta() } |
| 45 | |
| 46 | func (b *WriteableBlock) Write(ctx context.Context, w backend.Writer) error { |
| 47 | err := encoding.CopyBlock(ctx, b.BlockMeta(), b.reader, w) |
| 48 | if err != nil { |
| 49 | return fmt.Errorf("error copying block from local to remote backend: %w", err) |
| 50 | } |
| 51 | |
| 52 | err = b.setFlushed(ctx) |
| 53 | return err |
| 54 | } |
| 55 | |
| 56 | // TODO - Necessary? |
| 57 | func (b *WriteableBlock) setFlushed(ctx context.Context) error { |
nothing calls this directly
no test coverage detected