fix: Use correct path to on-disk write cache cleanup function

This commit is contained in:
Felicitas Pojtinger
2021-12-26 00:13:55 +01:00
parent 44a3d32b18
commit 6901b7f78a

View File

@@ -68,7 +68,7 @@ func NewCacheWrite(
} }
return fileWithSize{f}, func() error { return fileWithSize{f}, func() error {
return os.Remove(filepath.Join(tmpdir, f.Name())) return os.Remove(f.Name())
}, nil }, nil
default: default:
return nil, nil, ErrWriteCacheTypeUnsupported return nil, nil, ErrWriteCacheTypeUnsupported