restorer: extract hardlinks index from restic package

This commit is contained in:
Michael Eischer
2022-07-17 13:45:42 +02:00
parent 8c11fc3ec9
commit c44b21d366
3 changed files with 5 additions and 5 deletions

View File

@@ -218,7 +218,7 @@ func (res *Restorer) RestoreTo(ctx context.Context, dst string) error {
}
}
idx := restic.NewHardlinkIndex()
idx := NewHardlinkIndex()
filerestorer := newFileRestorer(dst, res.repo.Backend().Load, res.repo.Key(), res.repo.Index().Lookup, res.repo.Connections())
filerestorer.Error = res.Error