Skip to content

Commit

Permalink
[#saparjohnick] replace deprecated redis method hmset
Browse files Browse the repository at this point in the history
  • Loading branch information
Sapar Kurmanov committed Dec 1, 2023
1 parent f27c854 commit 5e67602
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sidekiq/statistic/statistic/metrics/store.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def store_cache_metrics(redis)
redis.pipelined do |pipeline|
pipeline.hincrby(REDIS_HASH, @keys.status, 1)

pipeline.hmset(REDIS_HASH, @keys.last_job_status, @metric.status,
pipeline.hset(REDIS_HASH, @keys.last_job_status, @metric.status,
@keys.last_time, @metric.finished_at.to_i,
@keys.queue, @metric.queue)

Expand Down

0 comments on commit 5e67602

Please sign in to comment.