From 9763c081708e4c2e08de1f4e9ca9abdef5cffe3c Mon Sep 17 00:00:00 2001 From: GitLab Bot Date: Tue, 17 Dec 2019 03:07:45 +0000 Subject: Add latest changes from gitlab-org/gitlab@master --- lib/gitlab/health_checks/unicorn_check.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/gitlab/health_checks/unicorn_check.rb') diff --git a/lib/gitlab/health_checks/unicorn_check.rb b/lib/gitlab/health_checks/unicorn_check.rb index cdc6d2a7519..a30ae015257 100644 --- a/lib/gitlab/health_checks/unicorn_check.rb +++ b/lib/gitlab/health_checks/unicorn_check.rb @@ -30,7 +30,7 @@ module Gitlab # to change so we can cache the list of servers. def http_servers strong_memoize(:http_servers) do - next unless Gitlab::Runtime.unicorn? + next unless defined?(::Unicorn::HttpServer) ObjectSpace.each_object(::Unicorn::HttpServer).to_a end -- cgit v1.2.1