(ctx context.Context, pool, revision string, dryrun bool)
| 220 | } |
| 221 | |
| 222 | func (l *local) Vacuum(ctx context.Context, pool, revision string, dryrun bool) ([]ksuid.KSUID, error) { |
| 223 | poolID, err := l.PoolID(ctx, pool) |
| 224 | if err != nil { |
| 225 | return nil, err |
| 226 | } |
| 227 | p, err := l.db.OpenPool(ctx, poolID) |
| 228 | if err != nil { |
| 229 | return nil, err |
| 230 | } |
| 231 | commit, err := p.ResolveRevision(ctx, revision) |
| 232 | if err != nil { |
| 233 | return nil, err |
| 234 | } |
| 235 | return p.Vacuum(ctx, commit, dryrun) |
| 236 | } |
nothing calls this directly
no test coverage detected