forked from TrueCloudLab/restic
Move FindSnapshot, make Repository.List() return IDs
This commit is contained in:
parent
cf37b619fd
commit
6e38a8a033
12 changed files with 75 additions and 97 deletions
|
@ -98,7 +98,7 @@ func SearchKey(s *Repository, password string) (*Key, error) {
|
|||
// try all keys in repo
|
||||
done := make(chan struct{})
|
||||
defer close(done)
|
||||
for name := range s.List(backend.Key, done) {
|
||||
for name := range s.Backend().List(backend.Key, done) {
|
||||
key, err := OpenKey(s, name, password)
|
||||
if err != nil {
|
||||
continue
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue