Skip to content

Commit

Permalink
Pipelined fixes for redis (davydovanton#183)
Browse files Browse the repository at this point in the history
  • Loading branch information
wflanagan authored May 6, 2022
1 parent 446acb1 commit 25e56ae
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/sidekiq/statistic/statistic/metrics/store.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ def call
cache_length = 0

Sidekiq.redis do |redis|
redis.pipelined { cache_length = store_cache_metrics(redis) }

redis.pipelined { |pipeline| cache_length = store_cache_metrics(pipeline) }
release_cache_allocation(redis, cache_length)
end
end
Expand Down

0 comments on commit 25e56ae

Please sign in to comment.