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/ci/trace/chunked_file/chunk_store/redis.rb')
-rw-r--r--lib/gitlab/ci/trace/chunked_file/chunk_store/redis.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/gitlab/ci/trace/chunked_file/chunk_store/redis.rb b/lib/gitlab/ci/trace/chunked_file/chunk_store/redis.rb
index c87275319d9..dc3756a6339 100644
--- a/lib/gitlab/ci/trace/chunked_file/chunk_store/redis.rb
+++ b/lib/gitlab/ci/trace/chunked_file/chunk_store/redis.rb
@@ -24,7 +24,7 @@ module Gitlab
def chunks_count(job_id)
Gitlab::Redis::Cache.with do |redis|
- redis.scan_each(:match => buffer_key(job_id, '?')).inject(0) do |sum, key|
+ redis.scan_each(match: buffer_key(job_id, '?')).inject(0) do |sum, key|
sum + 1
end
end
@@ -32,15 +32,15 @@ module Gitlab
def chunks_size(job_id)
Gitlab::Redis::Cache.with do |redis|
- redis.scan_each(:match => buffer_key(job_id, '?')).inject(0) do |sum, key|
- sum += redis.strlen(key)
+ redis.scan_each(match: buffer_key(job_id, '?')).inject(0) do |sum, key|
+ sum + redis.strlen(key)
end
end
end
def delete_all(job_id)
Gitlab::Redis::Cache.with do |redis|
- redis.scan_each(:match => buffer_key(job_id, '?')) do |key|
+ redis.scan_each(match: buffer_key(job_id, '?')) do |key|
redis.del(key)
end
end