diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-09-20 14:18:08 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-09-20 14:18:08 +0300 |
commit | 5afcbe03ead9ada87621888a31a62652b10a7e4f (patch) | |
tree | 9918b67a0d0f0bafa6542e839a8be37adf73102d /lib/gitlab/manifest_import | |
parent | c97c0201564848c1f53226fe19d71fdcc472f7d0 (diff) |
Add latest changes from gitlab-org/gitlab@16-4-stable-eev16.4.0-rc42
Diffstat (limited to 'lib/gitlab/manifest_import')
-rw-r--r-- | lib/gitlab/manifest_import/metadata.rb | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/gitlab/manifest_import/metadata.rb b/lib/gitlab/manifest_import/metadata.rb index 81711be729e..b2871b96ad6 100644 --- a/lib/gitlab/manifest_import/metadata.rb +++ b/lib/gitlab/manifest_import/metadata.rb @@ -40,13 +40,9 @@ module Gitlab "#{KEY_PREFIX}:{#{user.id}}:#{field}" end - def key_for(field) - "#{KEY_PREFIX}:#{user.id}:#{field}" - end - def redis_get(field) Gitlab::Redis::SharedState.with do |redis| - redis.get(hashtag_key_for(field)) || redis.get(key_for(field)) + redis.get(hashtag_key_for(field)) end end end |