backend/cache: use backend types not restic types (#21860)

This commit is contained in:
Michael Eischer authored and GitHub committed 2026-06-10 22:45:39 +02:00
1 parent a15b1579ff
commit c745f810b3
7 files changed
+41 -49

No files matched your search

+6 -1
View File
@@ -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