(ctx context.Context, config *branches.Config, engine storage.Engine, poolPath *storage.URI, pool *Pool)
| 40 | } |
| 41 | |
| 42 | func OpenBranch(ctx context.Context, config *branches.Config, engine storage.Engine, poolPath *storage.URI, pool *Pool) (*Branch, error) { |
| 43 | return &Branch{ |
| 44 | Config: *config, |
| 45 | pool: pool, |
| 46 | engine: engine, |
| 47 | }, nil |
| 48 | } |
| 49 | |
| 50 | func (b *Branch) Load(ctx context.Context, sctx *super.Context, r sio.Reader, author, message, meta string) (ksuid.KSUID, error) { |
| 51 | w, err := NewWriter(ctx, sctx, b.pool) |