summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2018-01-11 13:00:03 -0800
committerStan Hu <stanhu@gmail.com>2018-01-11 13:03:26 -0800
commitf4319f6a1828993503dc6683b65a5895a5c2fb5b (patch)
treeda25fd2d6e1eda22bbcad6b48ca3c1aa93f596ea /app
parent34760245bcb4156e21ca463b82b1fab84508b842 (diff)
downloadgitlab-ce-f4319f6a1828993503dc6683b65a5895a5c2fb5b.tar.gz
Remove warning noise in ProjectImportOptions
Squlches these warnings: ``` /opt/gitlab/embedded/service/gitlab-rails/app/workers/concerns/project_import_options.rb:5: warning: already initialized constant ProjectImportOptions::IMPORT_RETRY_COUNT /opt/gitlab/embedded/service/gitlab-rails/app/workers/concerns/project_import_options.rb:5: warning: previous definition of IMPORT_RETRY_COUNT was here ```
Diffstat (limited to 'app')
-rw-r--r--app/workers/concerns/project_import_options.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/workers/concerns/project_import_options.rb b/app/workers/concerns/project_import_options.rb
index 10b971344f7..ef23990ad97 100644
--- a/app/workers/concerns/project_import_options.rb
+++ b/app/workers/concerns/project_import_options.rb
@@ -1,9 +1,9 @@
module ProjectImportOptions
extend ActiveSupport::Concern
- included do
- IMPORT_RETRY_COUNT = 5
+ IMPORT_RETRY_COUNT = 5
+ included do
sidekiq_options retry: IMPORT_RETRY_COUNT, status_expiration: StuckImportJobsWorker::IMPORT_JOBS_EXPIRATION
# We only want to mark the project as failed once we exhausted all retries