repository/repository - fix unused sync.Mutex m

This commit is contained in:
Winfried Plappert 2025-03-05 22:15:27 +00:00
parent 8e71a92976
commit d794e41252
1 changed files with 0 additions and 3 deletions

View File

@ -54,7 +54,6 @@ type Repository struct {
maxRepoCapReached bool
maxRepoMutex sync.Mutex
}
// internalRepository allows using SaveUnpacked and RemoveUnpacked with all FileTypes
@ -399,8 +398,6 @@ func (r *Repository) saveAndEncrypt(ctx context.Context, t restic.BlobType, data
length, err := pm.SaveBlob(ctx, t, id, ciphertext, uncompressedLength)
var m sync.Mutex
// maximum repository capacity exceeded?
r.maxRepoMutex.Lock()
defer r.maxRepoMutex.Unlock()