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 // Unpin f from the cache
func Unpin(f fs.Fs) { func Unpin(f fs.Fs) {
createOnFirstUse() 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 // Get gets an fs.Fs named fsString either from the cache or creates it afresh