From 1dfd854769d593f32dab8b0d1dfa3b907ea73851 Mon Sep 17 00:00:00 2001 From: Michael Eischer Date: Fri, 19 Jan 2024 23:31:46 +0100 Subject: [PATCH] lock: switch to repository.List --- internal/restic/lock.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/restic/lock.go b/internal/restic/lock.go index 8c1001b48..d98f8ec94 100644 --- a/internal/restic/lock.go +++ b/internal/restic/lock.go @@ -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