forked from TrueCloudLab/restic
restore: Use proper context while loading snapshot
This commit is contained in:
parent
27456f6545
commit
603bb0e309
4 changed files with 7 additions and 7 deletions
|
@ -29,7 +29,7 @@ func TestRestorerRestoreEmptyHardlinkedFileds(t *testing.T) {
|
|||
},
|
||||
})
|
||||
|
||||
res, err := NewRestorer(repo, id)
|
||||
res, err := NewRestorer(context.TODO(), repo, id)
|
||||
rtest.OK(t, err)
|
||||
|
||||
res.SelectFilter = func(item string, dstpath string, node *restic.Node) (selectedForRestore bool, childMayBeSelected bool) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue