(ctx context.Context, db database.Store, fileID uuid.UUID)
| 15 | } |
| 16 | |
| 17 | func (c *LeakCache) Acquire(ctx context.Context, db database.Store, fileID uuid.UUID) (*CloseFS, error) { |
| 18 | // We need to call prepare first to both 1. leak a reference and 2. prevent |
| 19 | // the behavior of immediately closing on an error (as implemented in Acquire) |
| 20 | // from freeing the file. |
| 21 | c.prepare(db, fileID) |
| 22 | return c.Cache.Acquire(ctx, db, fileID) |
| 23 | } |
no test coverage detected