2
2
mirror of https://github.com/octoleo/restic.git synced 2024-12-22 02:48:55 +00:00

lock: switch to repository.List

This commit is contained in:
Michael Eischer 2024-01-19 23:31:46 +01:00
parent bfb56b78e1
commit 1dfd854769

View File

@ -341,8 +341,8 @@ func (l *Lock) checkExistence(ctx context.Context) (bool, error) {
exists := false
err := l.repo.Backend().List(ctx, LockFile, func(fi backend.FileInfo) error {
if fi.Name == l.lockID.String() {
err := l.repo.List(ctx, LockFile, func(id ID, size int64) error {
if id.Equal(*l.lockID) {
exists = true
}
return nil