repository: cleanup copy connection count check

This commit is contained in:
Michael Eischer 2022-08-28 11:40:56 +02:00
parent b03277ead5
commit 7682149c9d
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ import (
func Repack(ctx context.Context, repo restic.Repository, dstRepo restic.Repository, packs restic.IDSet, keepBlobs restic.BlobSet, p *progress.Counter) (obsoletePacks restic.IDSet, err error) {
debug.Log("repacking %d packs while keeping %d blobs", len(packs), len(keepBlobs))
if repo == dstRepo && dstRepo.Backend().Connections() < 2 {
if repo == dstRepo && dstRepo.Connections() < 2 {
return nil, errors.Fatal("repack step requires a backend connection limit of at least two")
}