repository: cleanup copy connection count check
This commit is contained in:
parent
b03277ead5
commit
7682149c9d
1 changed files with 1 additions and 1 deletions
|
@ -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")
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue