redis-cluster-client 0.3.10 → 0.3.11

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: 2e617645bfcf37192c1c665ceaee819439ee26821688906d311dd3792fc6c7d5
4
- data.tar.gz: c9a3125c8d012dfc937464aa37751c26e35fa8a7696a3b418a87f7019b263a06
3
+ metadata.gz: 7eb062a2819ec74aebd03e23d7fd55281b8bf600bb5dd9bbcfb4cb36086070ef
4
+ data.tar.gz: 0bb82a71679f66948d09f07a8e5ccb6b31138e9c1fe7f9d6ab7d10abf35cf473
5
5
  SHA512:
6
- metadata.gz: b2a815abb356acc39f0e842b5ecef6dd3d997b7554db351f7804289d386d8178221cab843e2144affceb55e849e52c672a99c49e51ef12d54000d0ee2b754f91
7
- data.tar.gz: f19f384f8928b1487d45fb7171b4af70becc6b34a5da9a7e9dc15050d88035123f9b8e08c979c01a59fce6581337a9155d4ba1a221397a4948b1aeadceee5957
6
+ metadata.gz: 87727a31dfd4278a353902f31b9bda5f99fe9e0651491f8b2af5bcab16bae819087adff8a8e7ecfdaf81bcd1f99b95e002d66bb4cc44ab690326bcca6c10dd4c
7
+ data.tar.gz: d4850893095a151cfe5f47a66642fcc311cd58e3466f46f5d8a1ce1e73374ac3f7faaf6b0bcb6ea1f3b18762c3198fad57af33614514280bcac85bfab2af8b08
@@ -43,7 +43,6 @@ class RedisClient
43
43
  clients.each_slice(::RedisClient::Cluster::Node::MAX_THREADS).each_with_object({}) do |chuncked_clients, acc|
44
44
  threads = chuncked_clients.map do |k, v|
45
45
  Thread.new(k, v) do |node_key, client|
46
- Thread.pass
47
46
  Thread.current.thread_variable_set(:node_key, node_key)
48
47
 
49
48
  min = DUMMY_LATENCY_NSEC
@@ -85,7 +85,6 @@ class RedisClient
85
85
  startup_nodes.each_slice(MAX_THREADS).with_index do |chuncked_startup_nodes, chuncked_idx|
86
86
  threads = chuncked_startup_nodes.each_with_index.map do |raw_client, idx|
87
87
  Thread.new(raw_client, (MAX_THREADS * chuncked_idx) + idx) do |cli, i|
88
- Thread.pass
89
88
  Thread.current.thread_variable_set(:index, i)
90
89
  reply = cli.call('CLUSTER', 'NODES')
91
90
  Thread.current.thread_variable_set(:info, parse_cluster_node_reply(reply))
@@ -304,7 +303,6 @@ class RedisClient
304
303
  clients.each_slice(MAX_THREADS) do |chuncked_clients|
305
304
  threads = chuncked_clients.map do |k, v|
306
305
  Thread.new(k, v) do |node_key, client|
307
- Thread.pass
308
306
  Thread.current.thread_variable_set(:node_key, node_key)
309
307
  reply = yield(node_key, client)
310
308
  Thread.current.thread_variable_set(:result, reply)
@@ -142,7 +142,6 @@ class RedisClient
142
142
  @pipelines&.each_slice(MAX_THREADS) do |chuncked_pipelines|
143
143
  threads = chuncked_pipelines.map do |node_key, pipeline|
144
144
  Thread.new(node_key, pipeline) do |nk, pl|
145
- Thread.pass
146
145
  Thread.current.thread_variable_set(:node_key, nk)
147
146
  replies = do_pipelining(@router.find_node(nk), pl)
148
147
  raise ReplySizeError, "commands: #{pl._size}, replies: #{replies.size}" if pl._size != replies.size
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.3.10
4
+ version: 0.3.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Taishi Kasuga
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-09-25 00:00:00.000000000 Z
11
+ date: 2022-09-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: redis-client