Skip to content

Commit

Permalink
Only use retryDownloader when setting > 1
Browse files Browse the repository at this point in the history
  • Loading branch information
lunny committed Nov 16, 2019
1 parent 8c76204 commit 8b4c58f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/migrations/migrate.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ func MigrateRepository(doer *models.User, ownerName string, opts base.MigrateOpt

uploader.gitServiceType = opts.GitServiceType

if setting.Migrations.MaxAttempts > 0 {
if setting.Migrations.MaxAttempts > 1 {
downloader = base.NewRetryDownloader(downloader, setting.Migrations.MaxAttempts, setting.Migrations.RetryBackoff)
}

Expand Down

0 comments on commit 8b4c58f

Please sign in to comment.