pass context to Find / FindSnapshot
This allows proper interruption of restic while it searches for snapshots or key files.
This commit is contained in:
parent
5fd3dbccb7
commit
c458e114d4
13 changed files with 24 additions and 24 deletions
|
@ -116,7 +116,7 @@ func SearchKey(ctx context.Context, s *Repository, password string, maxKeys int,
|
|||
checked := 0
|
||||
|
||||
if len(keyHint) > 0 {
|
||||
id, err := restic.Find(s.Backend(), restic.KeyFile, keyHint)
|
||||
id, err := restic.Find(ctx, s.Backend(), restic.KeyFile, keyHint)
|
||||
|
||||
if err == nil {
|
||||
key, err := OpenKey(ctx, s, id, password)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue