redis-cluster-client 0.4.15 → 0.4.16

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: be213593746d1aceb880d03bf002812ca650fa0f76aa6e906f52f2650a0fb758
4
- data.tar.gz: e5e9d541f024c595a2dac84db7f5a60a9df3b318ebcc20dfc60cbfa91b30cc8a
3
+ metadata.gz: d0718a12555e9116b8fe96bc0dba71151288f824ce878c0d17d6d70b653f4a61
4
+ data.tar.gz: 99decc7aaef7dedf30a16ab35bd652be4114d31e6f52ba03637c99c28c9c7e86
5
5
  SHA512:
6
- metadata.gz: 6d2bbd083b59645a96e3b97096f80cbe22c0788213b9f1b69a21d661fdf88d9f20abf1fdd785ef5e26ee083f5ce42d232da73863bc7015cdc17f836f01440c20
7
- data.tar.gz: c792f23f43397ff380f277e1c7b7d9cc54090f9cd6eb302c7aff8bacaacd31da98ba9a810991a566b1081cf7d96b889e608e9ad77239157b7c92ed1461fe2ebe
6
+ metadata.gz: 23b095c4d5ca638ab8de8fbaf51b97e845ac2e0f778bb70139cbe79dc62bd93fdf75f1d5701f5e6b85d639099df9a9ad5707560094cd977b591df5d997a80964
7
+ data.tar.gz: 2cb340116191ed21f4b048ee3bad5a473755e498278d4bff76a991e0b18d9b3b359ba207c3c1ec039d211a1b2cdc672d001aaf83a5079b2a2e6350c52cc6a6ae
@@ -64,12 +64,12 @@ class RedisClient
64
64
  def next_event(timeout = nil)
65
65
  return if @state_list.empty?
66
66
 
67
+ @state_list.shuffle!
67
68
  max_duration = calc_max_duration(timeout)
68
69
  starting = obtain_current_time
69
70
  loop do
70
71
  break if max_duration > 0 && obtain_current_time - starting > max_duration
71
72
 
72
- @state_list.shuffle!
73
73
  @state_list.each do |pubsub|
74
74
  message = pubsub.take_message(timeout)
75
75
  return message if message
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redis-cluster-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.15
4
+ version: 0.4.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Taishi Kasuga
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-08-14 00:00:00.000000000 Z
11
+ date: 2023-08-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: redis-client