downloader: verify fixempty (#9161)

This commit is contained in:
Alex Sharov 2024-01-09 08:25:12 +07:00 committed by GitHub
parent 19b9504039
commit 36fefbbee1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -229,7 +229,9 @@ func Downloader(ctx context.Context, logger log.Logger) error {
}
defer grpcServer.GracefulStop()
if len(_verifyFiles) > 0 {
verifyFiles = strings.Split(_verifyFiles, ",")
}
if verify || verifyFailfast || len(verifyFiles) > 0 { // remove and create .torrent files (will re-read all snapshots)
if err = d.VerifyData(ctx, verifyFiles, verifyFailfast); err != nil {
return err