Skip to content

Commit

Permalink
[lock_info] right signature
Browse files Browse the repository at this point in the history
  • Loading branch information
0exp committed Mar 30, 2024
1 parent 4d00986 commit 6917337
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/redis_queued_locks/acquier/locks.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def extract_locks_info(redis_client, lock_keys)
# Step X: iterate each lock and extract their info
lock_keys.each do |lock_key|
# Step 1: extract lock info from redis
lock_info = redis_client.pipelined(watch: [lock_key]) do |pipeline|
lock_info = redis_client.pipelined do |pipeline|
pipeline.call('HGETALL', lock_key)
pipeline.call('PTTL', lock_key)
end.yield_self do |result| # Step 2: format the result
Expand Down

0 comments on commit 6917337

Please sign in to comment.