1
mirror of https://github.com/rclone/rclone synced 2024-12-23 14:23:44 +01:00

fs/cache: fix cache unpin

This commit is contained in:
Martin Czygan 2022-06-20 13:14:58 +02:00 committed by GitHub
parent ac0dc9922e
commit 7a909ebfb0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

2
fs/cache/cache.go vendored
View File

@ -112,7 +112,7 @@ func PinUntilFinalized(f fs.Fs, x interface{}) {
// Unpin f from the cache
func Unpin(f fs.Fs) {
createOnFirstUse()
c.Pin(fs.ConfigString(f))
c.Unpin(fs.ConfigString(f))
}
// Get gets an fs.Fs named fsString either from the cache or creates it afresh