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

This commit is contained in:
Felix Pojtinger
2021-12-26 00:13:55 +01:00
parent e80f972ed1
commit c95d141cea

View File

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