summaryrefslogtreecommitdiff
path: root/lib/gitlab/graphql/calls_gitaly/field_extension.rb
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-05-12 15:13:54 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2023-05-12 15:13:54 +0000
commit98638cd5e43611aac2193a5c2f80f72374040430 (patch)
tree6605f0f284efed1d05708b3799f093eb5e305a8f /lib/gitlab/graphql/calls_gitaly/field_extension.rb
parent43d816ebc20da6ff959176248c70d8c4c7c9345a (diff)
downloadgitlab-ce-98638cd5e43611aac2193a5c2f80f72374040430.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/gitlab/graphql/calls_gitaly/field_extension.rb')
-rw-r--r--lib/gitlab/graphql/calls_gitaly/field_extension.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/gitlab/graphql/calls_gitaly/field_extension.rb b/lib/gitlab/graphql/calls_gitaly/field_extension.rb
index 014ce9fb0ee..32530b47ce3 100644
--- a/lib/gitlab/graphql/calls_gitaly/field_extension.rb
+++ b/lib/gitlab/graphql/calls_gitaly/field_extension.rb
@@ -67,14 +67,14 @@ module Gitlab
end
def accounted_for(count = nil)
- return 0 unless ::Gitlab::Instrumentation::Storage.active?
+ return 0 unless Gitlab::SafeRequestStore.active?
- ::Gitlab::Instrumentation::Storage["graphql_gitaly_accounted_for"] ||= 0
+ Gitlab::SafeRequestStore["graphql_gitaly_accounted_for"] ||= 0
if count.nil?
- ::Gitlab::Instrumentation::Storage["graphql_gitaly_accounted_for"]
+ Gitlab::SafeRequestStore["graphql_gitaly_accounted_for"]
else
- ::Gitlab::Instrumentation::Storage["graphql_gitaly_accounted_for"] += count
+ Gitlab::SafeRequestStore["graphql_gitaly_accounted_for"] += count
end
end