Change parameters of LoadTree()

This commit is contained in:
Alexander Neumann
2015-02-17 22:37:34 +01:00
parent 5a16a66973
commit 4d1e7b9f24
5 changed files with 7 additions and 7 deletions

View File

@@ -66,7 +66,7 @@ func parseTime(str string) (time.Time, error) {
func (c CmdFind) findInTree(s restic.Server, blob restic.Blob, path string) ([]findResult, error) {
debug.Log("restic.find", "checking tree %v\n", blob)
tree, err := restic.LoadTree(s, blob)
tree, err := restic.LoadTree(s, blob.Storage)
if err != nil {
return nil, err
}

View File

@@ -75,7 +75,7 @@ func fsckFile(opts CmdFsck, s restic.Server, m *restic.Map, IDs []backend.ID) (u
func fsckTree(opts CmdFsck, s restic.Server, blob restic.Blob) error {
debug.Log("restic.fsck", "checking tree %v\n", blob.ID)
tree, err := restic.LoadTree(s, blob)
tree, err := restic.LoadTree(s, blob.Storage)
if err != nil {
return err
}

View File

@@ -38,7 +38,7 @@ func print_node(prefix string, n *restic.Node) string {
}
func print_tree(prefix string, s restic.Server, blob restic.Blob) error {
tree, err := restic.LoadTree(s, blob)
tree, err := restic.LoadTree(s, blob.Storage)
if err != nil {
return err
}