mirror of
https://github.com/restic/restic.git
synced 2025-10-27 07:40:53 +00:00
Change parameters of LoadTree()
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user