backend/server: remove id and version from backend

This commit is contained in:
Alexander Neumann committed 2015-05-03 18:56:16 +02:00
1 parent 1cedff0e9e
commit 2fb1783885
6 files changed
+28 -246

No files matched your search

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