Rename method to #each_eligible_shard

This commit is contained in:
Toon Claes 2018-06-27 16:42:17 +02:00
parent 95ac8b0e1d
commit 041a8ae268
2 changed files with 2 additions and 2 deletions

View file

@ -6,7 +6,7 @@ module EachShardWorker
Gitlab::HealthChecks::GitalyCheck
].freeze
def each_shard
def each_eligible_shard
Gitlab::ShardHealthCache.update(eligible_shard_names)
eligible_shard_names.each do |shard_name|

View file

@ -7,7 +7,7 @@ module RepositoryCheck
def perform
return unless Gitlab::CurrentSettings.repository_checks_enabled
each_shard do |shard_name|
each_eligible_shard do |shard_name|
RepositoryCheck::BatchWorker.perform_async(shard_name)
end
end