mirror of
https://github.com/restic/restic.git
synced 2026-05-27 12:25:23 +00:00
backend/server: remove id and version from backend
This commit is contained in:
@@ -18,13 +18,13 @@ type Cache struct {
|
||||
base string
|
||||
}
|
||||
|
||||
func NewCache(be backend.Identifier) (*Cache, error) {
|
||||
func NewCache(s *server.Server) (*Cache, error) {
|
||||
cacheDir, err := getCacheDir()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
basedir := filepath.Join(cacheDir, be.ID())
|
||||
basedir := filepath.Join(cacheDir, s.ID())
|
||||
debug.Log("Cache.New", "opened cache at %v", basedir)
|
||||
|
||||
return &Cache{base: basedir}, nil
|
||||
|
||||
Reference in New Issue
Block a user