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:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-07-14 06:08:51 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2022-07-14 06:08:51 +0300
commit962711501ff8e5a004c700b97a367930ed5a1f20 (patch)
tree8be5b4d4de0cd0bdd5c61be727d67d1171c865d1 /lib/gitlab/gitaly_client.rb
parent13d294a8d8be05421e7d5e34577033ba5b34059c (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/gitlab/gitaly_client.rb')
-rw-r--r--lib/gitlab/gitaly_client.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/gitlab/gitaly_client.rb b/lib/gitlab/gitaly_client.rb
index f376dbce177..dd480b90ee5 100644
--- a/lib/gitlab/gitaly_client.rb
+++ b/lib/gitlab/gitaly_client.rb
@@ -285,6 +285,8 @@ module Gitlab
end
def self.enforce_gitaly_request_limits?
+ return false if ENV["GITALY_DISABLE_REQUEST_LIMITS"]
+
# We typically don't want to enforce request limits in production
# However, we have some production-like test environments, i.e., ones
# where `Rails.env.production?` returns `true`. We do want to be able to
@@ -293,7 +295,7 @@ module Gitlab
# enforce request limits.
return true if Feature::Gitaly.enabled?('enforce_requests_limits')
- !(Rails.env.production? || ENV["GITALY_DISABLE_REQUEST_LIMITS"])
+ !Rails.env.production?
end
private_class_method :enforce_gitaly_request_limits?