Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gitlab/health_checks/probes/readiness.rb')
-rw-r--r--lib/gitlab/health_checks/probes/readiness.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/gitlab/health_checks/probes/readiness.rb b/lib/gitlab/health_checks/probes/readiness.rb
index b789cbe1ae6..28abf490ffc 100644
--- a/lib/gitlab/health_checks/probes/readiness.rb
+++ b/lib/gitlab/health_checks/probes/readiness.rb
@@ -6,10 +6,10 @@ module Gitlab
class Readiness
attr_reader :checks
- # This accepts an array of Proc
+ # This accepts an array of objects implementing `:readiness`
# that returns `::Gitlab::HealthChecks::Result`
def initialize(*additional_checks)
- @checks = ::Gitlab::HealthChecks::CHECKS.map { |check| check.method(:readiness) }
+ @checks = ::Gitlab::HealthChecks::CHECKS
@checks += additional_checks
end
@@ -43,7 +43,7 @@ module Gitlab
def probe_readiness
checks
- .flat_map(&:call)
+ .flat_map(&:readiness)
.compact
.group_by(&:name)
end