work_shaper 0.1.2.5 → 0.1.2.7

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: 3486b765efce170ed99dd19dd25fe0b755e0c109c1f460ca2998f444cdf8557f
4
- data.tar.gz: d9329ef84832dfbc0704a56f39ed82a8a51f17e3ebe93741938f4422cdb47797
3
+ metadata.gz: 10f494bd3f41faa9fb21c35b15fa84f70fca9f7aa4d2edf011c380251366e757
4
+ data.tar.gz: 3986b290a21e7c96a812edfc82e1785af73de082711e816158f19b85fdeb0105
5
5
  SHA512:
6
- metadata.gz: 046bc8286d04fd48130621813262ea0537b8b68eec80fe6332658d46f09fe3ca4e5640d63f91b131e2f9774e286dbada92968d2e361feccabde139f91230ec41
7
- data.tar.gz: 4851e8636d76ea5d5438f343527117dc6880d1e47a5de07c35d20ee469df474fbd103c5d73850dea6217c1ce3f5174c64acebe4faf2c27d2233aaa9031e7c7d1
6
+ metadata.gz: 07de555d74c0274b4cd00556698d51bd5eb8c79c42d69481862a673487f45ca2f340e7c8fa70e9aab65b8d38df1feb71cfeb07eb4af127a06814b7965fbd092b
7
+ data.tar.gz: 7a80244bfe0dfc546029bfe69f7c2ea88b35e41cfb0e8f39e05216d03d3e7ffd3416261894c2a8ba791ec1dbb913634fbfa56368a20cf2d0cd3c6b9ae4c8616a
@@ -175,11 +175,7 @@ module WorkShaper
175
175
 
176
176
  def pause_on_overrun
177
177
  overrun = lambda do
178
- completed = @completed_offsets.values.flatten.count
179
- received = @received_offsets.values.flatten.count
180
-
181
178
  @total_enqueued.to_i - @total_acked.to_i > @max_in_queue
182
- received - completed > @max_in_queue
183
179
  end
184
180
 
185
181
  # We have to be careful here to avoid a deadlock. Another thread may be waiting
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module WorkShaper
4
- VERSION = "0.1.2.5"
4
+ VERSION = "0.1.2.7"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: work_shaper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2.5
4
+ version: 0.1.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jerry Fernholz