check: Allow filling the cache during check

Closes #1665
This commit is contained in:
Alexander Neumann
2018-03-31 10:02:09 +02:00
parent 2e7ec717c1
commit e68a7fea8a
4 changed files with 24 additions and 6 deletions

View File

@@ -11,7 +11,7 @@ type Repository struct {
KeyFn func() *crypto.Key
SetIndexFn func(restic.Index)
SetIndexFn func(restic.Index) error
IndexFn func() restic.Index
SaveFullIndexFn func() error
@@ -51,8 +51,8 @@ func (repo Repository) Key() *crypto.Key {
}
// SetIndex is a stub method.
func (repo Repository) SetIndex(idx restic.Index) {
repo.SetIndexFn(idx)
func (repo Repository) SetIndex(idx restic.Index) error {
return repo.SetIndexFn(idx)
}
// Index is a stub method.