From 7a909ebfb0d100187fab7949455bf74b8ce07042 Mon Sep 17 00:00:00 2001 From: Martin Czygan <53705+miku@users.noreply.github.com> Date: Mon, 20 Jun 2022 13:14:58 +0200 Subject: [PATCH] fs/cache: fix cache unpin --- fs/cache/cache.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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