Skip to content

Commit

Permalink
downloader: verify fixempty (#9161)
Browse files Browse the repository at this point in the history
  • Loading branch information
AskAlexSharov authored Jan 9, 2024
1 parent 19b9504 commit 36fefbb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/downloader/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,9 @@ func Downloader(ctx context.Context, logger log.Logger) error {
}
defer grpcServer.GracefulStop()

verifyFiles = strings.Split(_verifyFiles, ",")
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
Expand Down

0 comments on commit 36fefbb

Please sign in to comment.