mirror of
https://github.com/restic/restic.git
synced 2026-11-05 06:49:21 +00:00
backend/cache: use backend types not restic types (#21860)
This commit is contained in:
1 parent
a15b1579ff
commit
c745f810b3
7 files changed
+41
-49
No files matched your search
@@ -842,8 +842,13 @@ func (r *Repository) prepareCache() error {
|
||||
|
||||
packs := r.idx.Packs(restic.NewIDSet())
|
||||
|
||||
ids := make(map[string]struct{})
|
||||
for id := range packs {
|
||||
ids[id.String()] = struct{}{}
|
||||
}
|
||||
|
||||
// clear old packs
|
||||
return r.cache.Clear(restic.PackFile, packs)
|
||||
return r.cache.Clear(backend.PackFile, ids)
|
||||
}
|
||||
|
||||
// SearchKey finds a key with the supplied password, afterwards the config is
|
||||
|
||||
Reference in new issue
Block a user