mirror of
https://github.com/restic/restic.git
synced 2026-04-03 11:48:52 +00:00
Remove restic.Cache interface
It was used in one code path, which then asserted its concrete type as *cache.Cache. Privatised some of the interface methods.
This commit is contained in:
3
internal/cache/cache.go
vendored
3
internal/cache/cache.go
vendored
@@ -46,9 +46,6 @@ func readVersion(dir string) (v uint, err error) {
|
||||
|
||||
const cacheVersion = 1
|
||||
|
||||
// ensure Cache implements restic.Cache
|
||||
var _ restic.Cache = &Cache{}
|
||||
|
||||
var cacheLayoutPaths = map[restic.FileType]string{
|
||||
restic.PackFile: "data",
|
||||
restic.SnapshotFile: "snapshots",
|
||||
|
||||
Reference in New Issue
Block a user