bbk-amqp 1.0.0.105723 → 1.0.0.105775

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/lib/bbk/amqp/utils.rb +7 -2
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2f1da8aba8b479f41ed976777c38ce799d5564a4f851351f3ee9d1e068b38e33
4
- data.tar.gz: 97b64ced709b1ff88b9a02bd444de9826944a0af906c695625a4d3d0978062f2
3
+ metadata.gz: 4c2ee59533f46be2cedd40258298ffd91acab3ab431e4b856233c16970fc370d
4
+ data.tar.gz: f46345b907507f2cdf3ecdde858c591dceeb6e723a96f13492b7c0fa9222a8a9
5
5
  SHA512:
6
- metadata.gz: ab0d20cb16a171f6b2e4cafec6d0fd5038994e28d1891753a89efceffeedb71bcf58370385fec709fab694f059111a3e1f4f829eb6eabbfe98d4ee5d17ed414f
7
- data.tar.gz: 1234c97fb4ee02cf9cd3b85d5e5ff67ab6ce5ce12f73323b1bf961b4c9dea84c7240d0951dc05a6832669de4868953006e4d599595825262dc05612ca487978a
6
+ metadata.gz: d7d408f8c6e3d657878edc34fbe06a6b739cca8f63457256e35b7ba9c4456ab101bedd425546b8161d3c1626e5e078820b630140e219bfdf06426bf274fa75a8
7
+ data.tar.gz: 2d42e9502fa612b94ddcf797757b53081952a652fab266e138021e43ab675fb21497aeb299f82492feb7e87d915d3082b03a0dd666dd433aa55ba0f18eb2171c
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- bbk-amqp (1.0.0.105723)
4
+ bbk-amqp (1.0.0.105775)
5
5
  activesupport (>= 6.0)
6
6
  bbk-utils (> 1.0.1)
7
7
  bunny (>= 2.19.0)
@@ -22,6 +22,7 @@ module BBK
22
22
  mx.synchronize do
23
23
  if consumed
24
24
  queue.channel.nack(delivery_info.delivery_tag, false, true)
25
+ sleep 0.1
25
26
  break
26
27
  end
27
28
  consumed = true
@@ -42,9 +43,13 @@ module BBK
42
43
  unblocker << :timeout
43
44
  end
44
45
  result = unblocker.pop
45
- consumer.cancel
46
- raise ::Timeout::Error if result == :timeout
46
+ if result == :timeout
47
+ consumer.cancel
48
+ raise ::Timeout::Error
49
+ end
47
50
  queue.channel.ack(result[0].delivery_tag)
51
+ sleep 0.1
52
+ consumer.cancel
48
53
  result
49
54
  end
50
55
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bbk-amqp
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.105723
4
+ version: 1.0.0.105775
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samoylenko Yuri