Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

fs/cache: fix cache unpin

Martin Czygan7a909ebfb0d1
diff --git a/fs/cache/cache.go b/fs/cache/cache.go
index f59561888..3bdc8d37f 100644
--- a/fs/cache/cache.go
+++ b/fs/cache/cache.go
@@ -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