mirror of
https://github.com/octoleo/restic.git
synced 2024-11-30 00:33:57 +00:00
restorer: Fix return of saveSnapshot
This commit is contained in:
parent
57636a4573
commit
74016d5981
@ -91,7 +91,7 @@ func saveDir(t testing.TB, repo restic.Repository, nodes map[string]Node) restic
|
|||||||
return id
|
return id
|
||||||
}
|
}
|
||||||
|
|
||||||
func saveSnapshot(t testing.TB, repo restic.Repository, snapshot Snapshot) (restic.Repository, restic.ID) {
|
func saveSnapshot(t testing.TB, repo restic.Repository, snapshot Snapshot) (*restic.Snapshot, restic.ID) {
|
||||||
ctx, cancel := context.WithCancel(context.Background())
|
ctx, cancel := context.WithCancel(context.Background())
|
||||||
defer cancel()
|
defer cancel()
|
||||||
|
|
||||||
@ -118,7 +118,7 @@ func saveSnapshot(t testing.TB, repo restic.Repository, snapshot Snapshot) (rest
|
|||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
return repo, id
|
return sn, id
|
||||||
}
|
}
|
||||||
|
|
||||||
// toSlash converts the OS specific path dir to a slash-separated path.
|
// toSlash converts the OS specific path dir to a slash-separated path.
|
||||||
|
Loading…
Reference in New Issue
Block a user