redis_queued_locks 0.0.34 → 0.0.35

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 62b1870f7a71fb878167216b1f05a90f82c60b8a0da513dfad1edae8a87618a5
4
- data.tar.gz: 705c1e47d0f4823e38f749f24e82700ce33d749e187c0ae98ff9bd5ff21aa142
3
+ metadata.gz: 8e16184437150045fd98daf2ab2aaa328e0e7b0bae2a3bb513db25ea7eb535d6
4
+ data.tar.gz: 1965028261e953591dc707baea43801ed0ec506a85bd4de67c0a4e17cda52820
5
5
  SHA512:
6
- metadata.gz: cba6bd786d8db210d907bd5af41497aa3f34e026f2ecfb87f53e857f91d2278109c116a91bd767bffa4685c48f6a6d76be6054b93ffaea0e858f0d6a2ed29db1
7
- data.tar.gz: 05fa884031b73de440c10442a46d2c328fb118d0e8c7447d241b6d5e2391408affddf964b7ae210038bc40f620009a38537cccbe418c9dc6ea562f7f50b76537
6
+ metadata.gz: e0cff23e13e47de8bd207597c65e0e036bbf971caad6dbd062628ca8e1975467d52834cc83787a5b4f41b3b88310eb88fe17aba93b2776687d0e5af9913d44b4
7
+ data.tar.gz: a963e804304ff4884669244f07a41061c7cc7ed56ad72f702bc41a42e7e4f8985d4f8b27d330a62afdce652123343cddae390a75d8bd8cdbab354ac54f4dd118
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.0.35] - 2024-03-26
4
+ ### Changed
5
+ - The random unique client instance identifier now uses 16-byte strings instead of 10-btes in order to prevent potential collisions;
6
+
3
7
  ## [0.0.34] - 2024-03-26
4
8
  ### Changed
5
9
  - Removing the acquirer from the request queue during a lock obtaining logic now using more proper and accurate `ZREM` instead of `ZPOPMIN` for this;
@@ -22,7 +22,7 @@ module RedisQueuedLocks::Resource
22
22
  LOCK_QUEUE_PATTERN = 'rql:lock_queue:*'
23
23
 
24
24
  class << self
25
- # Returns 10-byte unique identifier. It is used for uniquely
25
+ # Returns 16-byte unique identifier. It is used for uniquely
26
26
  # identify current process between different nodes/pods of your application
27
27
  # during the lock obtaining and self-identifying in the lock queue.
28
28
  #
@@ -31,7 +31,7 @@ module RedisQueuedLocks::Resource
31
31
  # @api private
32
32
  # @since 0.1.0
33
33
  def calc_uniq_identity
34
- SecureRandom.hex(5)
34
+ SecureRandom.hex(8)
35
35
  end
36
36
 
37
37
  # @param process_id [Integer,String]
@@ -5,6 +5,6 @@ module RedisQueuedLocks
5
5
  #
6
6
  # @api public
7
7
  # @since 0.0.1
8
- # @version 0.0.34
9
- VERSION = '0.0.34'
8
+ # @version 0.0.35
9
+ VERSION = '0.0.35'
10
10
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redis_queued_locks
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.34
4
+ version: 0.0.35
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rustam Ibragimov