Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
6c37d3db
Commit
6c37d3db
authored
Feb 22, 2017
by
Douwe Maan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix incorrect rubocop autocorrects
parent
bbd1add2
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
app/workers/elastic_indexer_worker.rb
app/workers/elastic_indexer_worker.rb
+1
-1
lib/gitlab/middleware/readonly_geo.rb
lib/gitlab/middleware/readonly_geo.rb
+1
-1
lib/gitlab/sidekiq_cluster.rb
lib/gitlab/sidekiq_cluster.rb
+2
-2
No files found.
app/workers/elastic_indexer_worker.rb
View file @
6c37d3db
...
...
@@ -5,7 +5,7 @@ class ElasticIndexerWorker
sidekiq_options
queue: :elasticsearch
,
retry:
2
ISSUE_TRACKED_FIELDS
=
[
%w(assignee_id author_id confidential)
]
.
freeze
ISSUE_TRACKED_FIELDS
=
%w(assignee_id author_id confidential)
.
freeze
def
perform
(
operation
,
class_name
,
record_id
,
options
=
{})
return
true
unless
current_application_settings
.
elasticsearch_indexing?
...
...
lib/gitlab/middleware/readonly_geo.rb
View file @
6c37d3db
module
Gitlab
module
Middleware
class
ReadonlyGeo
DISALLOWED_METHODS
=
[
%w(POST PATCH PUT DELETE)
]
.
freeze
DISALLOWED_METHODS
=
%w(POST PATCH PUT DELETE)
.
freeze
APPLICATION_JSON
=
'application/json'
.
freeze
API_VERSIONS
=
(
3
..
4
)
...
...
lib/gitlab/sidekiq_cluster.rb
View file @
6c37d3db
module
Gitlab
module
SidekiqCluster
# The signals that should terminate both the master and workers.
TERMINATE_SIGNALS
=
[
%i(INT TERM)
]
.
freeze
TERMINATE_SIGNALS
=
%i(INT TERM)
.
freeze
# The signals that should simply be forwarded to the workers.
FORWARD_SIGNALS
=
[
%i(TTIN USR1 USR2 HUP)
]
.
freeze
FORWARD_SIGNALS
=
%i(TTIN USR1 USR2 HUP)
.
freeze
# Traps the given signals and yields the block whenever these signals are
# received.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment