Fix errcheck issues in server/channels/jobs/batch_migration_worker.go (#28832)

Этот коммит содержится в:
Domendra Singh Komra
2024-10-24 15:44:23 +05:30
коммит произвёл GitHub
родитель 8214ffbacd
Коммит 834d94ab39
2 изменённых файлов: 4 добавлений и 2 удалений

Просмотреть файл

@@ -201,7 +201,6 @@ issues:
channels/app/users/users_test.go|\
channels/app/web_broadcast_hooks_test.go|\
channels/app/webhook_test.go|\
channels/jobs/batch_migration_worker.go|\
channels/jobs/batch_report_worker.go|\
channels/jobs/batch_worker_test.go|\
channels/jobs/helper_test.go|\

Просмотреть файл

@@ -77,7 +77,10 @@ func (worker *BatchMigrationWorker) doBatch(rctx *request.Context, job *model.Jo
job.Data = nextData
// Migrations currently don't support reporting meaningful progress.
worker.jobServer.SetJobProgress(job, 0)
if err := worker.jobServer.SetJobProgress(job, 0); err != nil {
worker.logger.Error("Worker: Failed to set job progress", mlog.Err(err))
return false
}
return false
}