Move MemoryBackend to backend/mem

This commit is contained in:
Alexander Neumann 2016-01-23 19:19:26 +01:00
parent f05a32509e
commit 0b50f9e02c
6 changed files with 54 additions and 48 deletions

View file

@ -4,6 +4,7 @@ import (
"errors"
"github.com/restic/restic/backend"
"github.com/restic/restic/backend/mem"
"github.com/restic/restic/backend/test"
)
@ -17,7 +18,7 @@ func init() {
return nil, errors.New("temporary memory backend dir already exists")
}
be = backend.NewMemoryBackend()
be = mem.New()
return be, nil
}